1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
Judging by the explanation in the document below, I think that tags are only copied to AMIs obtained by the lifecycle policy.
https://docs.aws.amazon.com/ebs/latest/userguide/ami-policy.html
To copy all of the user-defined tags from the source instance to the AMIs created by the schedule, select Copy tags from source.
With "EBS snapshot policy", it is possible to tag snapshots.
https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-ami-policy.html
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- How do I create Amazon Data Lifecycle Manager policies from selected EBS volumes in the EC2 console?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 14 days ago
With just "EBS-policy" the copy source tags will carry over the tags to snapshots. With EBS-backed-AMI life cycle policy, the volumes attached to the source instance create a snapshot. Even with copy from source option selected, the volume tags are not copied to corresponding snapshots. How can I use EBS-backed AMI policy to copy Instance and attached Volume tags to the AMI and snapshots created?
The "Copy tags from source" option in the EBS-backed AMI policy is an option that copies tags to the AMI, so I don't think it will be set in the snapshot created with the AMI. If you really want to set a tag on a snapshot, I think you would need a script to create a Lambda or something and set the tag on the snapshot when the AMI is created.