The CloudFormation template

You can create a CloudFormation template file with the following Resources and Output sections to create a simple SQS queue with defaults:

Resources:
SQSQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: my-first-sqs-queue-cf

Output:
SQSQueueURL:
Value: !Ref SQSQueue
Export:
Name: "SQSQueueURL"
SQSQueueArn:
Value: !GetAtt SQSQueue.Arn
Export:
Name: "SQSQueueArn"

You may also add a template version and description.

If stack creation (run using aws cloudformation create-stack) is successful, the describe command (run using aws cloudformation describe-stacks) will return a response with the Output section, as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.93.141