-
Hello,
|
Beta Was this translation helpful? Give feedback.
Answered by
thisisshi
Jun 14, 2022
Replies: 2 comments 3 replies
-
You can accomplish this with boolean filters, example below: policies:
- name: find-non-compliant-tagged-resources
resource: aws.ec2
description: checks to see if the tag environment is present and \
if the value is "test" checks that tag tag-test \
is also present.
filters:
- not:
- or:
- and:
- tag:environment: present
- tag:environment: test
- tag:test-type: present
- and:
- tag:environment: present |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
thisisshi
-
@thisisshi do you happen to know how the syntax of the above policy if using a macro? for example we have a macros.yml with:
and then we inject this macro into Cloud Custodian policies using
I wish to adapt your policy above to the syntax in our macros.yaml. Any ideas? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can accomplish this with boolean filters, example below: