-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Skip if tag value is empty or set to true #823
Conversation
c1419d2
to
f67b0de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest changing the existing behavior slightly: if the exclusion tag has no value, we should assume the tag itself indicates that the resource should be excluded. If a value is present, we should check whether it is set to "true."
Agreed, this simplifies the whole logic quite a lot. |
42de8aa
to
d224bcd
Compare
#822 (comment) - To accommodate this, we could introduce a TagValue property within the FilterRule. The TagValue could default to true, be set to a specific value being targeted, or use *, indicating that it can match any value. How does this sound? |
This reverts commit f67b0de.
…uding resources from being nuked, fix gruntwork-io#822
…ag value using a regular expression, fix gruntwork-io#822
d224bcd
to
da874fc
Compare
I added The original request should now be easy to address using this configuration. cc: @ErezWeiss s3:
exclude:
tag: Component
tag_value: .* |
@james03160927 it seems amazing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Passed all the tests.
@james03160927 thank you. |
Description
Fixes #822, change the exclude by tag behaviour to allow matching by an empty tag value.
TODOs
Read the Gruntwork contribution guidelines.
nuke_sandbox
andnuke_phxdevops
jobs in.circleci/config.yml
have been updated with appropriate exclusions (either directly in the job or via the.circleci/nuke_config.yml
file) to prevent nuking IAM roles, groups, resources, etc that are important for the test accounts.Release Notes (draft)
change the
exclude by tag
behaviour to allow matching by an empty tag value, fix #822.Migration Guide
n/a