-
Notifications
You must be signed in to change notification settings - Fork 261
/
SQSWithQueueName.template
37 lines (32 loc) · 1.16 KB
/
SQSWithQueueName.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "AWS CloudFormation Sample Template SQSWithQueueName: Sample template showing how to create an SQS queue with a specific name. **WARNING** This template creates an Amazon SQS Queue. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"QueueName" : {
"Description" : "Name of queue to create",
"Type" : "String",
"MinLength": "1",
"MaxLength": "80",
"AllowedPattern": "[a-zA-Z0-9_-]+",
"ConstraintDescription": "must be a valid queue name."
}
},
"Resources": {
"MyQueue": {
"Type": "AWS::SQS::Queue",
"Properties" : {
"QueueName" : { "Ref" : "QueueName" }
}
}
},
"Outputs": {
"QueueURL": {
"Description": "URL of newly created SQS Queue",
"Value": { "Ref": "MyQueue" }
},
"QueueARN": {
"Description": "ARN of newly created SQS Queue",
"Value": { "Fn::GetAtt": [ "MyQueue", "Arn" ] }
}
}
}