I am using Serverless framework and trying to create SQS triggers for lambda function.
The SQS Queue is already created using another serverless template.
When I execute the serverless deploy command, there are no errors, but the SQS trigger is also not created.
Here is my serverless.yml file
service: cloudformation-demo
plugins:
- serverless-pseudo-parameters
custom:
CONNECT_DEVICE_SQS_ROLE_NAME: SqSConnectRole
CONNECT_DEVICE_SQS_QUEUE_NAME: connectDeviceSQSDemo1
provider:
name: aws
runtime: go1.x
stage: dev
region: us-east-1
package:
individually: true
exclude:
- ./**
functions:
lambdaenvinfo:
handler: bin/handlers/lambdaenvinfo
timeout: 900
package:
exclude:
- "**/**"
include:
- ./bin/handlers/lambdaenvinfo
events:
- sqs:
arn: arn:aws:sqs:us-east-1:672851574246:connectDeviceSQSDemo
batchSize: 1
enabled: true
I also referred to this thread, and tried to add required spaces.
Serverless does not create SQS events
Any solutions to this problem? It's surprising to see serverless doesn't display any errors.
enabled: true
is actually required here. Also, Serverless Framework is just a way of interacting with ClodFormation, so probably worth checking the stack out and see exactly what has happened there. – K Mo