Max Vynohradov
Max Vynohradov

Reputation: 1558

AWS: get SQS url in SAM template.yml file

How can I set up SQS url into the lambda Environment Variables? For example we can get URN for DynamoDB streams: !GetAtt SuperTable.StreamArn . I want to do something like that for SQS uri..

Upvotes: 4

Views: 2303

Answers (1)

sparrowt
sparrowt

Reputation: 2998

According to the documentation

!Ref YourQueueLogicalResourceName

returns the queue URL.

Upvotes: 3

Related Questions