You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(lambda): disable aws-lambda:useCdkManagedLogGroup feature flag when not set (#34613)
### Issue #34612Closes#34612 ### Reason for this change `USE_CDK_MANAGED_LAMBDA_LOGGROUP` makes CDK create a new log group. This is not backwards compatible with older CDK versions where the log group already exists. ### Description of changes Change the default flag value to false ### Describe any new or updated permissions being added None ### Description of how you validated changes Ran integ tests ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@@ -225,7 +226,6 @@ are migrating a v1 CDK project to v2, explicitly set any of these flags which do
225
226
226
227
| Flag | Summary | Type | Since | v1 default | v2 default |
227
228
| ----- | ----- | ----- | ----- | ----- | ----- |
228
-
|[@aws-cdk/aws-lambda:useCdkManagedLogGroup](#aws-cdkaws-lambdausecdkmanagedloggroup)| When enabled, CDK creates and manages loggroup for the lambda function | new default ||`false`|`true`|
229
229
|[@aws-cdk/core:newStyleStackSynthesis](#aws-cdkcorenewstylestacksynthesis)| Switch to new stack synthesis method which enables CI/CD | fix | 1.39.0 |`false`|`true`|
230
230
|[@aws-cdk/core:stackRelativeExports](#aws-cdkcorestackrelativeexports)| Name exports based on the construct paths relative to the stack, rather than the global construct path | fix | 1.58.0 |`false`|`true`|
231
231
|[@aws-cdk/aws-rds:lowercaseDbIdentifier](#aws-cdkaws-rdslowercasedbidentifier)| Force lowercasing of RDS Cluster names in CDK | fix | 1.97.0 |`false`|`true`|
@@ -485,7 +485,7 @@ Refer aws-lambda/README.md for more details on Customizing Log Group creation.
485
485
| Since | Default | Recommended |
486
486
| ----- | ----- | ----- |
487
487
| (not in v1) |||
488
-
| V2_NEXT |`true`|`true`|
488
+
| V2_NEXT |`false`|`true`|
489
489
490
490
**Compatibility with old behavior:** Disable the feature flag to let lambda service create logGroup or specify logGroup or logRetention
0 commit comments