-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
ApiGateway: parameter for changing retention policy of CloudWatchRole and Account #26827
Comments
Related issue: #22020 |
Makes sense @nguyen102, You can currently work around this with escape hatches - Check |
Ah, this worked. I was able to change the retention policy of the |
|
…licy (#26836) Adds a `cloudWatchRoleRemovalPolicy` property to `RestApiBaseProps` that allows to specify a custom retention policy for CloudWatchRole and Account. Defaults to `RemovalPolicy.RETAIN`. Closes #26827. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the feature
When creating ApiGateway via
RestApi
, the retention policy for the CloudWatchRole and Account sub-resources isRETAIN
. There is no option to set the policy toDELETE
. It looks like the policy used to beDELETE
based on this Issue.I would like an option to set the retention policy of those two resources to be
DELETE
.Use Case
When I'm trying to destroy my CDK stack,
CloudWatchRole
andAccount
are the only two resources I have to manually delete. I would like those resources to be deleted automatically when I destroy the CDK stack.Proposed Solution
A parameter option that I can past into RestApi Construct to delete those two resources.
Other Information
No response
Acknowledgements
CDK version used
3.315.0
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: