aws / ec2-image-builder-roadmap

Public Roadmap for EC2 Image Builder.
Other
34 stars 7 forks source link

Infrastructure Configuration support for Tags in Metadata #73

Open jgard opened 2 years ago

jgard commented 2 years ago

Community Note

Tell us about your request Instance Tags now available on the Amazon EC2 Instance Metadata Service is a great enhancement, and we're taking advantage of it where we can to make various automation easier. We'd like Image Builder Infrastructure Configurations to support it.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? An Image Builder Component we're working on creates a script file in the image that reads tags from metadata. We'd really like to use a test phase for this component, verifying that the tags are properly read by the script. However as far as I can tell, Infrastructure Configurations don't currently support that attribute (it would probably be here). We'd love if an instance used in both the build and test phases had access to tags in metadata.

Are you currently working around this issue? We could work around it by reaching out to the EC2 API and querying tags for the current instance, but that introduces additional permission requirements that shouldn't be necessary. We want to use tags-in-metadata.

Additional context

Attachments