You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after manually updating in GUI and building images, the same thing happens. When I looked at the build server that was created, it had "Access to tags in instance metadata" disabled.
I think it's best to refactor to use parameters in imagebuilder.
To the build.yml:
parameters:
- PARAMETERSTORE_NAME:
type: stringdescription: Project name
- INSTANCE_NAME:
type: stringdescription: Instance name (e.g. admin/frontend)#...PARAMETERSTORE_NAME={{ PARAMETERSTORE_NAME }}_INSTANCE_NAME={{ INSTANCE_NAME }}
To the imagebuilder.tf:
parameter {
name ="PARAMETERSTORE_NAME"
value ="${local.project}-env"
}
parameter {
name ="INSTANCE_NAME"
value ="${each.key}"
}
The text was updated successfully, but these errors were encountered:
youanden
changed the title
Terraform/Imagebuilder doesn't support metadata yet
Imagebuilder doesn't support instance metadata on builds
Apr 3, 2022
I traced this to the terraform aws provider not supporting metadata and added a ticket:
hashicorp/terraform-provider-aws#24006
But after manually updating in GUI and building images, the same thing happens. When I looked at the build server that was created, it had "Access to tags in instance metadata" disabled.
I think it's best to refactor to use parameters in imagebuilder.
To the build.yml:
To the imagebuilder.tf:
The text was updated successfully, but these errors were encountered: