I have inherited a next.js/serverless project. 1 of the pure serverless functions will not deploy an update to the function code. I have only seen 2 other issues semi related on the forum, 1 resolved itself, and the other renamed the serverless function name.
I am getting:
An error occurred: CrmEventSourceMappingSQSProdcrmfifo - The resource you requested does not exist. (Service: Lambda, Status Code: 404, Request ID: 5fac1f02-1afc-4b0c-b3fe-8586f6b0dc64, Extended Request ID: null).
The debug events:
CloudFormation - UPDATE_IN_PROGRESS - AWS::CloudFormation::Stack - crm-integration-prod
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - CrmLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - CrmLambdaFunction
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - CrmLambdaVersionyDjIuujn7SGHocxbDoGFx9iO3GXBlDxa0IoI2y18z9Y
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::EventSourceMapping - CrmEventSourceMappingSQSProdcrmfifo
CloudFormation - CREATE_IN_PROGRESS - AWS::Lambda::Version - CrmLambdaVersionyDjIuujn7SGHocxbDoGFx9iO3GXBlDxa0IoI2y18z9Y
CloudFormation - CREATE_COMPLETE - AWS::Lambda::Version - CrmLambdaVersionyDjIuujn7SGHocxbDoGFx9iO3GXBlDxa0IoI2y18z9Y
CloudFormation - UPDATE_FAILED - AWS::Lambda::EventSourceMapping - CrmEventSourceMappingSQSProdcrmfifo
CloudFormation - UPDATE_ROLLBACK_IN_PROGRESS - AWS::CloudFormation::Stack - crm-integration-prod
CloudFormation - UPDATE_IN_PROGRESS - AWS::Lambda::Function - CrmLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::Function - CrmLambdaFunction
CloudFormation - UPDATE_COMPLETE - AWS::Lambda::EventSourceMapping - CrmEventSourceMappingSQSProdcrmfifo
CloudFormation - UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS - AWS::CloudFormation::Stack - crm-integration-prod
CloudFormation - DELETE_SKIPPED - AWS::Lambda::Version - CrmLambdaVersionyDjIuujn7SGHocxbDoGFx9iO3GXBlDxa0IoI2y18z9Y
CloudFormation - UPDATE_ROLLBACK_COMPLETE - AWS::CloudFormation::Stack - crm-integration-prod
Serverless: Operation failed!
My Environment:
Operating System: darwin
Node Version: 14.12.0
Framework Version: 2.3.0
Plugin Version: 4.0.4
SDK Version: 2.3.2
Components Version: 3.2.0
My function serverless snippet:
# serverless.yml
service: crm-integration
provider:
name: aws
runtime: nodejs12.x
environment:
AWS_ID: <ID>
CRM_SQS_URL: https://sqs.us-east-1.amazonaws.com/<ID>/prod_crm.fifo
AWS_SECRET: <SECRET>
DYNAMODB_REGION: "us-east-1"
POOL_ID: us-east-1_<ID>
DB_TABLE: <TABLE NAME>
API_URL: <URL>
STATS_DB: <TABLE NAME>
functions:
crm:
handler: handler.crm
memorySize: 256
timeout: 29
events:
- sqs: arn:aws:sqs:us-east-1:<ID>:prod_crm.fifo