Need way to 'copy-volume-tags' to snapshot
See original GitHub issueDoes 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:
- Created 5 years ago
- Reactions:1
- Comments:14 (5 by maintainers)
Top GitHub Comments
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.
Is anyone currently working on this improvement?