{"action":"created","issue":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2497","repository_url":"https://api.github.com/repos/capitalone/cloud-custodian","labels_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2497/labels{/name}","comments_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2497/comments","events_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2497/events","html_url":"https://github.com/capitalone/cloud-custodian/issues/2497","id":330825729,"node_id":"MDU6SXNzdWUzMzA4MjU3Mjk=","number":2497,"title":"Need way to 'copy-volume-tags' to snapshot","user":{"login":"davidclin","id":6853545,"node_id":"MDQ6VXNlcjY4NTM1NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/6853545?v=4","gravatar_id":"","url":"https://api.github.com/users/davidclin","html_url":"https://github.com/davidclin","followers_url":"https://api.github.com/users/davidclin/followers","following_url":"https://api.github.com/users/davidclin/following{/other_user}","gists_url":"https://api.github.com/users/davidclin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidclin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidclin/subscriptions","organizations_url":"https://api.github.com/users/davidclin/orgs","repos_url":"https://api.github.com/users/davidclin/repos","events_url":"https://api.github.com/users/davidclin/events{/privacy}","received_events_url":"https://api.github.com/users/davidclin/received_events","type":"User","site_admin":false},"labels":[{"id":876680469,"node_id":"MDU6TGFiZWw4NzY2ODA0Njk=","url":"https://api.github.com/repos/capitalone/cloud-custodian/labels/cloud/aws","name":"cloud/aws","color":"bfd4f2","default":false},{"id":334062492,"node_id":"MDU6TGFiZWwzMzQwNjI0OTI=","url":"https://api.github.com/repos/capitalone/cloud-custodian/labels/kind/enhancement","name":"kind/enhancement","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-08T23:00:28Z","updated_at":"2018-09-21T19:21:40Z","closed_at":null,"author_association":"NONE","body":"Does Cloud Custodian have the ability to copy volume tags to snapshots?\r\n\r\nWould love to replace [Graffiti Monkey](https://github.com/Answers4AWS/graffiti-monkey) with Cloud Custodian to:\r\n\r\n(1) copy instance tags to volumes \r\n(2) copy volume tags to snapshots\r\n\r\nThis would also help my clients reduce their tooling footprint. \r\n\r\nBy way of example, here's how several of my clients are using Graffiti Monkey:\r\n\r\n```\r\n_instance_tags_to_propagate:\r\n  - 'Name'\r\n  - 'Owner'\r\n  - 'Team'\r\n\r\n_volume_tags_to_propagate:\r\n  - 'Name'\r\n  - 'instance_id'\r\n  - 'device'\r\n  - 'Owner'\r\n```\r\n\r\n`_instance_tags_to_propagate` is used to define the tags that are propagated from an instance to its volumes. \r\n`_volume_tags_to_propagate` defines the tags that are propagated from a volume to its snapshots.\r\n\r\nLooking at the **ebs schema**, it looks like (1) can be accomplished using the `copy-instance-tags` action. \r\n\r\nLooking at the **ebs-snapshot schema**, I was hoping to see a `copy-volume-tags `action.  Unless that's performed a different way?\r\n\r\n**custodian schema ebs.actions**\r\n(c7n_mailer) $ custodian schema ebs.actions\r\naws.ebs:\r\n  actions: [auto-tag-user, **copy-instance-tags**, delete, encrypt-instance-volumes, invoke-lambda,\r\n    mark, mark-for-op, modify, normalize-tag, notify, put-metric, remove-tag, rename-tag,\r\n    snapshot, tag, tag-trim, unmark, untag]\r\n\r\n**custodian schema ebs-snapshot.actions**\r\n(c7n_mailer) $ custodian schema ebs-snapshot.actions\r\naws.ebs-snapshot:\r\n  actions: [auto-tag-user, copy, delete, invoke-lambda, mark, mark-for-op, normalize-tag,\r\n    notify, put-metric, remove-tag, rename-tag, tag, tag-trim, unmark, untag]\r\n\r\nHoping this is just my lack of knowing where to look and someone's done this before!"},"comment":{"url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/comments/423644958","html_url":"https://github.com/capitalone/cloud-custodian/issues/2497#issuecomment-423644958","issue_url":"https://api.github.com/repos/capitalone/cloud-custodian/issues/2497","id":423644958,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzY0NDk1OA==","user":{"login":"thisisshi","id":4026535,"node_id":"MDQ6VXNlcjQwMjY1MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/4026535?v=4","gravatar_id":"","url":"https://api.github.com/users/thisisshi","html_url":"https://github.com/thisisshi","followers_url":"https://api.github.com/users/thisisshi/followers","following_url":"https://api.github.com/users/thisisshi/following{/other_user}","gists_url":"https://api.github.com/users/thisisshi/gists{/gist_id}","starred_url":"https://api.github.com/users/thisisshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thisisshi/subscriptions","organizations_url":"https://api.github.com/users/thisisshi/orgs","repos_url":"https://api.github.com/users/thisisshi/repos","events_url":"https://api.github.com/users/thisisshi/events{/privacy}","received_events_url":"https://api.github.com/users/thisisshi/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T19:21:40Z","updated_at":"2018-09-21T19:21:40Z","author_association":"COLLABORATOR","body":"@AndrewCi not that I'm aware of, this does seem to be a fairly popular feature request though. "}}
{"actor":{"display_login":"thisisshi"}}