Hi,
I am testing the new SQS trigger, the creation of the queue and the lambda works well, but the status of the trigger is disabled. This is how my yml looks like:
service:
name: kopi-orders-api
plugins:
- serverless-webpack
- serverless-pseudo-parameters
provider:
name: aws
runtime: nodejs8.10
region: eu-west-1
stage: ${opt:stage, 'dev'}
iamRoleStatements:
- Effect: Allow
Action:
- sqs:*
Resource: arn:aws:sqs:*:*:*
- Effect: Allow
Action:
- sqs:ListQueues
Resource: "*"
custom:
ordersQueueName: ${self:provider.stage}-orders-queue
resources:
Resources:
ordersQueue:
Type: "AWS::SQS::Queue"
Properties:
QueueName: ${self:custom.ordersQueueName}
functions:
create-order:
handler: orders/create.create
events:
- sqs:
arn: arn:aws:sqs:#{AWS::Region}:#{AWS::AccountId}:${self:custom.ordersQueueName}
batchSize: 1
enabled: true
And this is how it looks like in the aws console right after the creation.
If I manually toggle the status to enabled, everything works as expect
Any suggestion on what I am missing?