resource "azurerm_shared_image_gallery" "compute_gallery" {
for_each = { for gal in var.compute_gallery : gal.name => gal }
name = each.value.name
resource_group_name = each.value.rg_name
location = each.value.location
description = each.value.description
tags = each.value.tags
dynamic "sharing" {
for_each = each.value.sharing != null ? [each.value.sharing] : []
content {
permission = title(sharing.value.permission)
dynamic "community_gallery" {
for_each = sharing.value.community_gallery != null ? [sharing.value.community_gallery] : []
content {
eula = community_gallery.value.eula
prefix = community_gallery.value.prefix
publisher_email = community_gallery.value.publisher_email
publisher_uri = community_gallery.value.publisher_uri
}
}
}
}
}
No requirements.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_shared_image_gallery.compute_gallery | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
compute_gallery | The block used to create 1 or more compute galleries | list(object({ |
n/a | yes |
Name | Description |
---|---|
gallery_id | The ID of the gallery |
gallery_location | The location name of the gallery |
gallery_name | The name name of the gallery |
gallery_rg_name | The rg name of the gallery |
gallery_tags | The tags of the gallery |
gallery_unique_name | The unique name of the gallery |