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
- Host: GitHub
- URL: https://github.com/libre-devops/terraform-azurerm-compute-gallery
- Owner: libre-devops
- License: mit
- Created: 2022-05-26T16:32:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T23:13:11.000Z (7 months ago)
- Last Synced: 2024-12-26T16:11:57.687Z (4 months ago)
- Language: PowerShell
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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.tagsdynamic "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
}
}
}
}
}```
## RequirementsNo 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({| n/a | yes |
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
}))
}))
}))## 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 |