I’m trying to use serverless to deploy a service which reads a JSON payload on an http endpoint and then passes it to an SQS queue. Here’s my serverless.yml:
provider: name: aws runtime: nodejs6.10 environment: sqs_url: !Ref MessagesQueue functions: process: handler: handler.handler events: - http: get handler resources: Resources: MessagesQueue: Type: AWS::SQS::Queue
This gives me an error saying: unknown tag !<!Ref>
Basically, I’m trying to set the environment variable sqs_url to the newly created SQS queue’s url. Is this possible?