Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for multiple resources in one policy #5964

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anovis
Copy link
Contributor

@anovis anovis commented Jul 16, 2020

based on #5258 and would allow for multiple resources to be added in one policy. Behind the scenes these policies will be split into individual policies by resource with the resource name appended to the policy name.

For example based on the policy below the new policies would be named multi-resource-tagging[ec2] and multi-resource-tagging[ebs] and would have the corresponding resource. They would be validated and executed separately as any other policy.

policies:
  - name: multi-resource-tagging
     resource: ["ec2", "ebs"]
     filters: 
      - "tag:Tag": absent
    actions:
     - type: tag
       key: Tag
       value: tagged

note: resources such as "aws.ebs" would change to aws-ebs in the policy name to correctly pass regex validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant