An open API service indexing awesome lists of open source software.

https://github.com/libre-devops/terraform-azurerm-compute-gallery

A module used to deploy an Azure Compute Gallery
https://github.com/libre-devops/terraform-azurerm-compute-gallery

Last synced: 2 months ago
JSON representation

A module used to deploy an Azure Compute Gallery

Awesome Lists containing this project

README

        

```hcl
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
}
}
}
}
}

```
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| [azurerm](#provider\_azurerm) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [azurerm_shared_image_gallery.compute_gallery](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image_gallery) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [compute\_gallery](#input\_compute\_gallery) | The block used to create 1 or more compute galleries |

list(object({
name = string
rg_name = string
location = optional(string, "uksouth")
description = optional(string, "The default compute gallery used within the azure platform")
tags = map(string)
sharing = optional(object({
permission = optional(string, "Groups")
community_gallery = optional(object({
eula = string
prefix = string
publisher_email = string
publisher_uri = string
}))
}))
}))
| n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [gallery\_id](#output\_gallery\_id) | The ID of the gallery |
| [gallery\_location](#output\_gallery\_location) | The location name of the gallery |
| [gallery\_name](#output\_gallery\_name) | The name name of the gallery |
| [gallery\_rg\_name](#output\_gallery\_rg\_name) | The rg name of the gallery |
| [gallery\_tags](#output\_gallery\_tags) | The tags of the gallery |
| [gallery\_unique\_name](#output\_gallery\_unique\_name) | The unique name of the gallery |