Do not create SQS event

I am trying to make serverless create a trigger to fire whenever an object queues. But it does not create and also does not fire any errors.

My function:
I did according to the documentation (Serverless Framework - AWS Lambda Events - SQS Queues)

  receiveMessage:
    timeout: 10
    handler: handler.receiveMessage
    reservedConcurrency: 10
    events:
     - sqs:
       arn: arn:aws:sqs:us-east-1:074601456889:messages
       batchSize: 1
  iamRoleStatements:
   - Effect: "Allow"
     Action:
     - sqs:SendMessage
     - sqs:ReceiveMessage
     Resource: arn:aws:sqs:us-east-1:074601456889:messages

But it does not create :sob::sob::sob:

Your indentation is wrong.

1 Like