I am encountering an error when trying to redeploy a Lambda using @app.on_dynamodb_record in AWS Chalice. The error message is:
An error occurred (ResourceConflictException) when calling the CreateEventSourceMapping operation:
The event source arn ("XXX") and function ("XXX") provided mapping already exists.
Please update or delete the existing mapping with UUID.
I have tried resolving this issue by updating, as suggested in the error message, but it does not seem to work. From what I can ascertain, there might be an underlying issue related to CloudFormation. Is there any other solution or workaround besides deleting?
Related Issue
Description