Using CloudFormation to create an SQS queue and then sending messages to that queue

I’m working on a project where I’m using CloudFormation to create some SQS queues, however on one of the functions I need it to be able to reference the SQS queue created. Ideally I would like to use it in a similar fashion to how I can use Fn::GetAtt.

I’ve tried to get the queue name into an environmental variable but I don’t think I’ve got it quite right:

  environment:
    send_queue:
      Fn::GetAtt:
        - StartMessageDeliveryQueue
        - Arn

Surprisingly, this just worked when actually deploying. Yet the sls package didn’t seem to look right.