Skip to content

Unable to deploy ServiceDeployer if "@aws-cdk/aws-lambda:useCdkManagedLogGroup" flag is enabled #90

@acomagu

Description

@acomagu

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions