DEV Community

Discussion on: ⚡️Combining Serverless Framework & AWS CDK

Collapse
 
andrenbrandao profile image
André Brandão

Thanks for sharing! Having to reference the queue with a simple {cf:InfrastructureStack.queueUrl} is much better than making complex Joins in CloudFormation.

In one of my projects, I was having to reference a queue like this:

      MESSAGE_PROCESSING_QUEUE_URL: {
        'Fn::Join': [
          '',
          [
            'https://sqs.',
            { Ref: 'AWS::Region' },
            '.',
            { Ref: 'AWS::URLSuffix' },
            '/',
            { Ref: 'AWS::AccountId' },
            '/',
            { 'Fn::GetAtt': ['MessageProcessingQueue', 'QueueName'] },
          ],
        ],
      }
Enter fullscreen mode Exit fullscreen mode
Collapse
 
tastefulelk profile image
Sebastian Bille AWS Community Builders

Ah, I've had my fair share of those! Happy you found it useful! 🙌