(lambda-event-sources): Lambda event source is not removed when deploying CDK application #18706
Labels
@aws-cdk/aws-lambda-event-sources
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p2
What is the problem?
I've recently upgrade to CDK 1.140.0 from 1.119.0 and decided to take advantage of the native support for adding an SQS event source to a Lambda function. To do so I deleted the existing EventSourceMapping in code in favor of the native solution but when deploying the application I encountered the following the error:
Resources names and ARNs have been redacted.
Reproduction Steps
Output of
git diff
:What did you expect to happen?
For the application to successfully deploy.
What actually happened?
The deployment failed because there was already an existing event source mapping for the same queue ARN and Lambda function name/ARN/identifier.
CDK CLI Version
1.140.0
Framework Version
No response
Node.js Version
v.14.18.3
OS
Amazon Linux 2
Language
Typescript
Language Version
TypesScript(3.9.7)
Other information
Potentially related issue:
aws/serverless-application-model#1320
The text was updated successfully, but these errors were encountered: