I’m trying to get my function to wire up to my SQS queue that i create in the resource file
functions:
consumer:
handler: handler.consumer
events:
- sqs:
batchSize: 1
arn:
Fn::GetAtt: [ WorkerQueue, Arn ]
resources:
Resources:
WorkerQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: workerQueue-${self:provider.stage}
but i keep getting the following error
AWS::Lambda::EventSourceMapping consumerSQSWorkerQueue UPDATE_FAILED: Resource handler returned message: “The resource you requested does not exist. (Service: Lambda, Status Code: 404, Request ID: , Extended Request ID: null)” (RequestToken: , HandlerErrorCode: NotFound)
It’s strange because in AWS it looks in the stack that it has worked but i get AWS messages around UPDATE_ROLLBACK_COMPLETE