(apigateway): retention policy for RestApi CloudWatchRole and Account changed in 2.38.0 #22020
Labels
@aws-cdk/aws-apigateway
Related to Amazon API Gateway
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
Describe the bug
When upgrading from v2.28.0 to v2.39.1, we noticed that our API Gateway (created via
RestApi
) changed the retention policy for theCloudWatchRole
andAccount
sub-resources toRETAIN
, which is extremely undesirable as it means these resources will be leaked when the stack is deleted.It seems that this behavior was introduced in v2.38.0 via #10878, but the release notes don't mention it. They only say "CloudWatch logging should be disabled by default (under feature flag)", which has nothing to do with the retention policy, nor does it mention the feature flag itself, which seems to be
@aws-cdk/aws-apigateway:disableCloudWatchRole
.Expected Behavior
Either the retention policy should not have been changed, or this change should have been explicitly included in the release notes.
Current Behavior
The retention policy changes, as reported by
cdk diff
.Reproduction Steps
Then run
cdk synth
andcdk diff
.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.39.1 (build f188fac)
Framework Version
No response
Node.js Version
v16.17.0
OS
Alpine 3.16
Language
Python
Language Version
3.10.6
Other information
No response
The text was updated successfully, but these errors were encountered: