-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feedback Wanted: CDK Exclusion Template #401
Comments
@BwL1289 If you have it in You should convert any of the
You could try glob instead
You could also just add to
|
@ekristen thanks. I've updated to add to - type: contains
value: cdk-hnb659fds |
@BwL1289 it can probably be distilled down to presets:
# MARK: - Exclude cdk aws resources (see: https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping-env.html)
# Important: KMS key not included in cdk bootstrap resources any longer
cdk:
filters:
# Exclude resources with cdk in the name
__global__: # Catch all for all resources
- type: "contains"
value: "cdk"
- type: "contains"
value: "hnb659fds"
- type: glob
value: "*cdk*"
- property: Name
type: "glob"
value: "*cdk*"
- property: ARN
type: "glob"
value: "*cdk*"
- property: Name
type: "glob"
value: "*CDK*"
- property: ARN
type: "glob"
value: "*CDK*"
- property: Name
type: "contains"
value: "hnb659fds"
# Important: As of this writing, the exec role does not have a tag associated, so it is not included here
- property: tag:aws:cloudformation:stack-name
type: "glob"
value: "*CDK*"
- property: tag:aws:aws-cdk:bootstrap-role
value: "lookup"
- property: tag:aws:aws-cdk:bootstrap-role
value: "image-publishing"
- property: tag:aws:aws-cdk:bootstrap-role
value: "file-publishing"
- property: tag:aws:aws-cdk:bootstrap-role
value: "deploy"
- property: tag:aws:cloudformation:logical-id
type: "glob"
value: "*Cdk*"
- property: tag:aws:aws:cloudformation:stack-id
type: "glob"
value: "*CDK*" |
@ekristen thank you. Appreciate the input and hope we can use this to give to the community. |
Also, the |
@BwL1289 test it out, if it works as you expect, let me know or open a PR to update the docs to include it. |
@BwL1289 any luck in testing? |
Worked beautifully in dev. Testing in production next week. Thanks for the follow up |
@BwL1289 any luck testing in prod? |
Use case: exclude all CDK resources from being nuked to avoid rebootstrapping.
There's a lot of redundancy here in an attempt not to miss anything. Any recommendations to make it less verbose but achieve the same coverage is appreciated.
The text was updated successfully, but these errors were encountered: