aws / ec2-image-builder-roadmap

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

Share AmiTags in DistributionConfiguration #62

Open taylorbartley opened 3 years ago

taylorbartley commented 3 years ago

Community Note

Tell us about your request I would like the AmiTags attribute specified in the DistributionConfiguration resource to be shared with the distributed AMIs.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? My team is attempting to restrict launching EC2 instance to AMIs with a particular tag, similarly to this AWS blog post, and we would like ImageBuilder to make and share these AMIs. I've noticed that when you define AmiTags, these are added to the AMIs in the account where the AMI is built, but they don't appear for the shared AMIs in the downstream accounts. If they could be present when an AMI is distributed, that may save us quite a bit of operational overhead to manage this restriction.

Are you currently working around this issue? We've only brainstormed so far, but the potential workaround would be a lambda function to copy tags from built AMIs to their shared counterparts.

Additional context N/a.

Attachments N/a

henrivdr01 commented 1 year ago

I guess this is not an ImageBuilder limitation itself, rather part of the code that does the AMI sharing in general, (launchPermission). @girishb-aws can you point us to where we can request the functionality in the AMI sharing code?