{"id":18578951,"url":"https://github.com/libre-devops/terraform-azurerm-shared-image","last_synced_at":"2026-03-19T05:08:52.127Z","repository":{"id":118714595,"uuid":"496697232","full_name":"libre-devops/terraform-azurerm-shared-image","owner":"libre-devops","description":"A module used to add a shared image to an Azure Compute Gallery","archived":false,"fork":false,"pushed_at":"2022-05-28T18:36:28.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-16T02:12:39.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libre-devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-26T16:40:54.000Z","updated_at":"2022-06-08T12:39:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"a40269cd-ee39-424e-8001-ab97ecb9e1d1","html_url":"https://github.com/libre-devops/terraform-azurerm-shared-image","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"libre-devops/terraform-module-template","purl":"pkg:github/libre-devops/terraform-azurerm-shared-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-shared-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-shared-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-shared-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-shared-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libre-devops","download_url":"https://codeload.github.com/libre-devops/terraform-azurerm-shared-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libre-devops%2Fterraform-azurerm-shared-image/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262132661,"owners_count":23264040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:38:24.323Z","updated_at":"2026-03-03T14:31:02.346Z","avatar_url":"https://github.com/libre-devops.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"```hcl\nmodule \"rg\" {\n  source = \"registry.terraform.io/libre-devops/rg/azurerm\"\n\n  rg_name  = \"rg-${var.short}-${var.loc}-${terraform.workspace}-build\" // rg-ldo-euw-dev-build\n  location = local.location                                            // compares var.loc with the var.regions var to match a long-hand name, in this case, \"euw\", so \"westeurope\"\n  tags     = local.tags\n\n  #  lock_level = \"CanNotDelete\" // Do not set this value to skip lock\n}\n\nmodule \"gallery\" {\n  source = \"registry.terraform.io/libre-devops/compute-gallery/azurerm\"\n\n  rg_name  = module.rg.rg_name\n  location = module.rg.rg_location\n  tags     = module.rg.rg_tags\n\n  gallery_name = \"gal${var.short}${var.loc}${terraform.workspace}01\"\n  description  = \"A basic description\"\n}\n\nmodule \"image\" {\n  source = \"registry.terraform.io/libre-devops/shared-image/azurerm\"\n\n  rg_name  = module.rg.rg_name\n  location = module.rg.rg_location\n  tags     = module.rg.rg_tags\n\n  images = {\n    img01 = {\n      gallery_name             = module.gallery.gallery_name\n      is_image_specialised     = false\n      image_hyper_v_generation = \"V2\"\n      image_os_type            = \"Linux\"\n\n      identifier = {\n        publisher = \"LibreDevOps\"\n        offer     = \"Image2\"\n        sku       = \"Latest\"\n      }\n      \n      create_image_version = true\n      image_version_number = formatdate(\"YYYY.MM\", timestamp())\n      exclude_from_latest  = false\n\n      image_version_target_region = {\n        image_replication_zone_location = \"westeurope\"\n      }\n    }\n  }\n}\n```\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_azurerm\"\u003e\u003c/a\u003e [azurerm](#provider\\_azurerm) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [azurerm_shared_image.shared_image](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image) | resource |\n| [azurerm_shared_image_version.shared_image_version](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image_version) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_create_image_version\"\u003e\u003c/a\u003e [create\\_image\\_version](#input\\_create\\_image\\_version) | Whether the for\\_each block for an image version is to be executed | `bool` | `false` | no |\n| \u003ca name=\"input_images\"\u003e\u003c/a\u003e [images](#input\\_images) | The images block | `any` | n/a | yes |\n| \u003ca name=\"input_location\"\u003e\u003c/a\u003e [location](#input\\_location) | The location for this resource to be put in | `string` | n/a | yes |\n| \u003ca name=\"input_rg_name\"\u003e\u003c/a\u003e [rg\\_name](#input\\_rg\\_name) | The name of the resource group, this module does not create a resource group, it is expecting the value of a resource group already exists | `string` | n/a | yes |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A map of the tags to use on the resources that are deployed with this module. | `map(string)` | \u003cpre\u003e{\u003cbr\u003e  \"source\": \"terraform\"\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_shared_image_gallery_name\"\u003e\u003c/a\u003e [shared\\_image\\_gallery\\_name](#output\\_shared\\_image\\_gallery\\_name) | The name of the shared image gallery |\n| \u003ca name=\"output_shared_image_id\"\u003e\u003c/a\u003e [shared\\_image\\_id](#output\\_shared\\_image\\_id) | The id of the shared image |\n| \u003ca name=\"output_shared_image_name\"\u003e\u003c/a\u003e [shared\\_image\\_name](#output\\_shared\\_image\\_name) | The name of the shared image |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-shared-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibre-devops%2Fterraform-azurerm-shared-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibre-devops%2Fterraform-azurerm-shared-image/lists"}