Search code examples
amazon-web-servicesaws-lambdaamazon-sqs

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..


Solution

  • According to the documentation

    !Ref YourQueueLogicalResourceName
    

    returns the queue URL.