Fix/add tag on gallery imgs (#195)

* chore(shared-tools) bump to latest version

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>

* fix(packer image gallery) add tags to shared images

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
pull/196/head
Damien Duportal 10 months ago committed by GitHub
parent b8493c4f44
commit 93bcced95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 263a1dc6f5c72c39cc8d0c213a21b6f5d7d923e6
Subproject commit 0c7b9909f841c41f3e02ef6360056c2933fdd47e

@ -56,9 +56,7 @@ resource "azurerm_shared_image" "jenkins_agent_images" {
sku = format("jenkins-agent-%s", split("_", each.value)[1])
}
## No tags otherwise there is the following error when applying:
# creating/updating Shared Image: (Image Name "jenkins-agent-ubuntu-20.04" / Gallery Name "prod_packer_images" / Resource Group "prod-packer-images"): compute.GalleryImagesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="PropertyChangeNotAllowed" Message="Changing property 'galleryImage.properties.eula' is not allowed." Target="galleryImage.properties.eula"
# tags = {
# scope = "terraform-managed"
# }
tags = {
scope = "terraform-managed"
}
}

Loading…
Cancel
Save