Skip to content

Latest commit

 

History

History
104 lines (79 loc) · 1.57 KB

azurerm_storage_sync_group.md

File metadata and controls

104 lines (79 loc) · 1.57 KB

azurerm_storage_sync_group

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_storage_sync_group" {
  source = "./modules/azurerm/d/azurerm_storage_sync_group"

  # name - (required) is a type of string
  name = null
  # storage_sync_id - (required) is a type of string
  storage_sync_id = null

  timeouts = [{
    read = null
  }]
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "storage_sync_id" {
  description = "(required)"
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      read = string
    }
  ))
  default = []
}

top

Datasource

data "azurerm_storage_sync_group" "this" {
  # name - (required) is a type of string
  name = var.name
  # storage_sync_id - (required) is a type of string
  storage_sync_id = var.storage_sync_id

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # read - (optional) is a type of string
      read = timeouts.value["read"]
    }
  }

}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.azurerm_storage_sync_group.this.id
}

output "this" {
  value = azurerm_storage_sync_group.this
}

top