question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need way to 'copy-volume-tags' to snapshot

See original GitHub issue

Does Cloud Custodian have the ability to copy volume tags to snapshots?

Would love to replace Graffiti Monkey with Cloud Custodian to:

(1) copy instance tags to volumes (2) copy volume tags to snapshots

This would also help my clients reduce their tooling footprint.

By way of example, here’s how several of my clients are using Graffiti Monkey:

_instance_tags_to_propagate:
  - 'Name'
  - 'Owner'
  - 'Team'

_volume_tags_to_propagate:
  - 'Name'
  - 'instance_id'
  - 'device'
  - 'Owner'

_instance_tags_to_propagate is used to define the tags that are propagated from an instance to its volumes. _volume_tags_to_propagate defines the tags that are propagated from a volume to its snapshots.

Looking at the ebs schema, it looks like (1) can be accomplished using the copy-instance-tags action.

Looking at the ebs-snapshot schema, I was hoping to see a copy-volume-tags action. Unless that’s performed a different way?

custodian schema ebs.actions (c7n_mailer) $ custodian schema ebs.actions aws.ebs: actions: [auto-tag-user, copy-instance-tags, delete, encrypt-instance-volumes, invoke-lambda, mark, mark-for-op, modify, normalize-tag, notify, put-metric, remove-tag, rename-tag, snapshot, tag, tag-trim, unmark, untag]

custodian schema ebs-snapshot.actions (c7n_mailer) $ custodian schema ebs-snapshot.actions aws.ebs-snapshot: actions: [auto-tag-user, copy, delete, invoke-lambda, mark, mark-for-op, normalize-tag, notify, put-metric, remove-tag, rename-tag, tag, tag-trim, unmark, untag]

Hoping this is just my lack of knowing where to look and someone’s done this before!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tzd-shcommented, Nov 28, 2018

Add me to this feature request. graffiti-monkey does this well for one account, but I really need c7n-org’s feature to do the same across multiple accounts.

1reaction
AndrewCicommented, Sep 17, 2018

Is anyone currently working on this improvement?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy Snapshot API now supports adding tags while copying ...
You can now add tags while copying snapshots. Previously, a user had to first copy the snapshot and then add tags to the...
Read more >
Automatically Tag Amazon EBS Snapshots with Tags taken ...
You can now add tags while copying snapshots. Previously, a user had to first copy the snapshot and then add tags to the...
Read more >
copy-snapshot — AWS CLI 2.1.30 Command Reference
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. ... Snapshots created by copying another snapshot have an...
Read more >
Tag EBS Snapshots Actions - Skeddly Help Center
Required if Snapshot Identification Method is "By Volume ID". Specifies the volume IDs whose snapshots will be tagged. Copy Tags From Volume. Indicates...
Read more >
Copying tags onto backups - 亚马逊云科技
For example, when you back up an Amazon EC2 volume, Amazon Backup copies its group and individual resource tags to the resulting snapshot,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found