Skip to content

Latest commit

 

History

History
124 lines (95 loc) · 1.95 KB

File metadata and controls

124 lines (95 loc) · 1.95 KB

azurerm_data_share

back

Index

Terraform

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

top

Example Usage

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

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

  timeouts = [{
    read = null
  }]
}

top

Variables

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

variable "name" {
  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_data_share" "this" {
  # account_id - (required) is a type of string
  account_id = var.account_id
  # name - (required) is a type of string
  name = var.name

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

}

top

Outputs

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

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

output "kind" {
  description = "returns a string"
  value       = data.azurerm_data_share.this.kind
}

output "snapshot_schedule" {
  description = "returns a list of object"
  value       = data.azurerm_data_share.this.snapshot_schedule
}

output "terms" {
  description = "returns a string"
  value       = data.azurerm_data_share.this.terms
}

output "this" {
  value = azurerm_data_share.this
}

top