Repository navigation
Migrate to @aws-cdk/aws-lambda:useCdkManagedLogGroup: true #35747
Replies: 1 comment
|
Hi @MurraySpeight! This is one of the most common friction points when enabling the Here is the exact explanation of why this happens and the two documented, zero-downtime ways to migrate successfully: Why the Error Happens
Solution 1: CloudFormation Resource Import (Zero Log Loss & Zero Downtime - Recommended)AWS CloudFormation provides a native Resource Import workflow specifically designed to bring pre-existing resources into CloudFormation management without deleting them or losing historical logs. Steps:
Solution 2: Automated Two-Step Migration with
|
Uh oh!
There was an error while loading. Please reload this page.
Is there a documented process to migrate over to using the flag
@aws-cdk/aws-lambda:useCdkManagedLogGroup: trueWhen I turn this on in a stack already deployed I get errors that the log group already exists. If I delete the log group and try again then I get errors relating to the metrics filter not being found.
"Resource of type 'AWS::Logs::LogGroup' with identifier '{"/properties/LogGroupName":"/aws/lambda/my-stack-name-MyLambda-abcdef12345"}' already exists."This flag seems valuable to have turned on but it seems difficult to migrate over to.
All reactions