Enabling "@aws-cdk/aws-lambda:useCdkManagedLogGroup" feature flag of CDK make unable to create ServiceDeployer.
ServiceDeployer is explicitly creating a LogGroup for the Lambda function, but its name is the same as the one automatically created by CDK.
As a result, deploying produces such error:
/aws/lambda/MapServiceWorkflowV2-MapServiceDeployerDevEventHan-PF7S59b27GJh already exists in stack ...
The "@aws-cdk/aws-lambda:useCdkManagedLogGroup" feature flag is recommended, and enabled by default when initializing CDK project by cdk init command.
Enabling "@aws-cdk/aws-lambda:useCdkManagedLogGroup" feature flag of CDK make unable to create ServiceDeployer.
ServiceDeployer is explicitly creating a LogGroup for the Lambda function, but its name is the same as the one automatically created by CDK.
As a result, deploying produces such error:
The "@aws-cdk/aws-lambda:useCdkManagedLogGroup" feature flag is recommended, and enabled by default when initializing CDK project by
cdk initcommand.