EBS-backed AMI Lifecycle Management Policy doesn't copy tags for volumes to snapshot

0

Using EBS-backed AMI policy which uses Instance as a source to create AMI. With the copy source tags option selected, the AMI created has all the instance tags. The volumes attached to the instances create a snapshot. These snapshots do not carry any tags over from volumes.

asked 20 days ago111 views
1 Answer
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.

a

With "EBS snapshot policy", it is possible to tag snapshots.
https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-ami-policy.html

profile picture
EXPERT
answered 20 days ago
profile picture
EXPERT
reviewed 20 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?

  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions