Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "AWSTemplateFormatVersion":"2010-09-09",
- "Description":"",
- "Parameters":{
- "Environment":{
- "Description":"Environment (Dev [dev], QA [qa], Staging [stage], Production [prod].",
- "Type":"String",
- "Default":"dev"
- },
- "QueueName":{
- "Description":"",
- "Type":"String",
- "Default":"trolley-sync-queue"
- },
- "DelaySeconds":{
- "Description":"",
- "Type":"Number",
- "Default":"0"
- },
- "MaximumMessageSize":{
- "Description":"",
- "Type":"Number",
- "Default":"256"
- },
- "MessageRetentionPeriod":{
- "Description":"",
- "Type":"Number",
- "Default":"604800"
- },
- "ReceiveMessageWaitTimeSeconds":{
- "Description":"",
- "Type":"Number",
- "Default":"0"
- },
- "VisibilityTimeout":{
- "Description":"",
- "Type":"Number",
- "Default":"30"
- },
- "DeadLetterQueueReceiveCount":{
- "Description":"",
- "Type":"Number",
- "Default":"3"
- }
- },
- "Resources":{
- "TrolleySQSDeadLetterQueue":{
- "Type":"AWS::SQS::Queue",
- "Properties":{
- "QueueName":{
- "Fn::Join":[
- "-",
- [
- {
- "Ref":"QueueName"
- },
- {
- "Ref":"Environment"
- },
- "dead-letter"
- ]
- ]
- }
- },
- "TrolleySQSQueue":{
- "Type":"AWS::SQS::Queue",
- "Properties":{
- "QueueName":{
- "Fn::Join":[
- "-",
- [
- {
- "Ref":"QueueName"
- },
- {
- "Ref":"Environment"
- }
- ]
- ]
- },
- "DelaySeconds":{
- "Ref":"DelaySeconds"
- },
- "MaximumMessageSize":{
- "Ref":"DelaySeconds"
- },
- "MessageRetentionPeriod":{
- "Ref":"MessageRetentionPeriod"
- },
- "ReceiveMessageWaitTimeSeconds":{
- "Ref":"ReceiveMessageWaitTimeSeconds"
- },
- "RedrivePolicy":{
- "deadLetterTargetArn":{
- "Fn::GetAtt":[
- "TrolleySQSDeadLetterQueue",
- "Arn"
- ]
- },
- "maxReceiveCount":{
- "Ref":"DeadLetterQueueReceiveCount"
- }
- },
- "VisibilityTimeout":{
- "Ref":"VisibilityTimeout"
- }
- },
- "Outputs":{
- "TrolleySQSQueueName":{
- "Description":"",
- "Value":{
- "Fn::GetAtt":[
- "TrolleySQSQueue",
- "QueueName"
- ]
- }
- },
- "TrolleySQSQueueARN":{
- "Description":"ARN of the source queue",
- "Value":{
- "Fn::GetAtt":[
- "TrolleySQSQueue",
- "Arn"
- ]
- }
- },
- "TrolleySQSDeadLetterQueueName":{
- "Description":"",
- "Value":{
- "Fn::GetAtt":[
- "TrolleySQSDeadLetterQueueName",
- "QueueName"
- ]
- }
- },
- "TrolleySQSDeadLetterQueueARN":{
- "Description":"ARN of the dead letter queue",
- "Value":{
- "Fn::GetAtt":[
- "MyDeadLetterQueue",
- "Arn"
- ]
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement