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

config compliance filter supporting wildcards for name matching #4772

Open
mo-saeed opened this issue Sep 12, 2019 · 0 comments
Open

config compliance filter supporting wildcards for name matching #4772

mo-saeed opened this issue Sep 12, 2019 · 0 comments

Comments

@mo-saeed
Copy link

mo-saeed commented Sep 12, 2019

I have problem creating policy for checking config rules compliance, I have automation with CF stackset which creates a config rules with name like that "StackSet-CheckForS3ServerSideEncr-837664hffy3" the last part of the string is just random string generated for each account now i am trying to use this policy but it doesn't work with regex

   - name: s3-security-non-compliant
    resource: s3
    filters:
      - type: config-compliance
        rules:
          - "StackSet-CheckForS3ServerSideEncr-*"
        states: [NON_COMPLIANT]
    actions:
       - <<: *notify-var

Any possible ways of achieving this goal ? I am using c7n-org

@mo-saeed mo-saeed changed the title Possibility to add regex in list of rules in config-compliance filters config compliance filter supporting wildcards for name matching Sep 12, 2019
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

No branches or pull requests

1 participant