Skip to content

Action: auto-tag-user requires Lambda? #8752

Closed Answered by ajkerrigan
andrewegel asked this question in General
Discussion options

You must be logged in to vote

Thanks for opening the discussion, you're right about the example policy in the docs - we should specify a role there 👍 .

As for the larger discussion around tagging resources with creator info, there are two high-level options:

  1. Run policies with the auto-tag-user action. As you've noticed here, those policies need to run in Lambda mode. They run in response to creation events, and suck information out of those creation events to tag resources. In pull mode we don't have that event context, so we don't know who the creator is.
  2. Run c7n-trailcreator to retroactively tag resources in bulk based on digging through CloudTrail history.

The most common path is to set up auto-tag-user policies …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andrewegel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants