-
-
Save mdtareque/4e446008459c1450b4322eea8e485108 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"28274dc9-0e15-452e-a9df-c414c5ece700": { | |
"size": { | |
"width": 60, | |
"height": 60 | |
}, | |
"position": { | |
"x": 210, | |
"y": 30 | |
}, | |
"z": 1, | |
"embeds": [] | |
}, | |
"396f6da4-9cc4-4d7a-bc67-4f134bc417b1": { | |
"size": { | |
"width": 60, | |
"height": 60 | |
}, | |
"position": { | |
"x": 330, | |
"y": 30 | |
}, | |
"z": 1, | |
"embeds": [] | |
}, | |
"467c4bd9-527e-451c-906c-8923468607e5": { | |
"size": { | |
"width": 60, | |
"height": 60 | |
}, | |
"position": { | |
"x": 210, | |
"y": 150 | |
}, | |
"z": 1, | |
"embeds": [] | |
} | |
} | |
}, | |
"Resources": { | |
"SQS1": { | |
"Type": "AWS::SQS::Queue", | |
"Properties": { | |
"VisibilityTimeout": 40, | |
"MessageRetentionPeriod": 1209600, | |
"RedrivePolicy": { | |
"deadLetterTargetArn": { | |
"Fn::GetAtt": [ | |
"SQS2", | |
"Arn" | |
] | |
}, | |
"maxReceiveCount": 2 | |
}, | |
"QueueName": { | |
"Fn::Join": [ | |
"-", | |
[ | |
{ | |
"Ref": "ENV" | |
}, | |
{ | |
"Fn::FindInMap": [ | |
"RegionCodeMapping", | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"regionCode" | |
] | |
}, | |
{ | |
"Ref": "TeamName" | |
}, | |
"DistributedTracingStateSpanEvent" | |
] | |
] | |
} | |
}, | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"id": "28274dc9-0e15-452e-a9df-c414c5ece700" | |
} | |
} | |
}, | |
"SQS2": { | |
"Type": "AWS::SQS::Queue", | |
"Properties": { | |
"MessageRetentionPeriod": 1209600, | |
"QueueName": { | |
"Fn::Join": [ | |
"-", | |
[ | |
{ | |
"Ref": "ENV" | |
}, | |
{ | |
"Fn::FindInMap": [ | |
"RegionCodeMapping", | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"regionCode" | |
] | |
}, | |
{ | |
"Ref": "TeamName" | |
}, | |
"DLQ" | |
] | |
] | |
} | |
}, | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"id": "396f6da4-9cc4-4d7a-bc67-4f134bc417b1" | |
} | |
} | |
}, | |
"BucketPolicy": { | |
"Type": "AWS::S3::Bucket", | |
"Properties": { | |
"BucketName": { | |
"Fn::Join": [ | |
"-", | |
[ | |
{ | |
"Ref": "ENV" | |
}, | |
{ | |
"Fn::FindInMap": [ | |
"RegionCodeMapping", | |
{ | |
"Ref": "AWS::Region" | |
}, | |
"regionCode" | |
] | |
}, | |
{ | |
"Ref": "TeamName" | |
}, | |
"distributedtrainig-shushisink" | |
] | |
] | |
} | |
}, | |
"Metadata": { | |
"AWS::CloudFormation::Designer": { | |
"id": "467c4bd9-527e-451c-906c-8923468607e5" | |
} | |
} | |
} | |
}, | |
"Mappings": { | |
"RegionCodeMapping": { | |
"us-east-1": { | |
"regionCode": "us" | |
}, | |
"us-west-2": { | |
"regionCode": "fe" | |
}, | |
"eu-west-1": { | |
"regionCode": "eu" | |
} | |
} | |
}, | |
"Parameters": { | |
"ENV": { | |
"Description": "Enter Envirment type e.g. dev,test,prod", | |
"Type": "String" | |
}, | |
"TeamName": { | |
"Description": "Enter Name TeamName", | |
"Type": "String" | |
} | |
}, | |
"Outputs": { | |
"QueueName1": { | |
"Description": "State Events SQS Queues", | |
"Value": { | |
"Fn::GetAtt": [ | |
"SQS1", | |
"QueueName" | |
] | |
} | |
}, | |
"QueueName2": { | |
"Description": "State Events SQS-DLQ Queues", | |
"Value": { | |
"Fn::GetAtt": [ | |
"SQS2", | |
"QueueName" | |
] | |
} | |
}, | |
"QueueARN1": { | |
"Description": "ARN of State Events SQS Queues", | |
"Value": { | |
"Fn::GetAtt": [ | |
"SQS1", | |
"Arn" | |
] | |
} | |
}, | |
"QueueARN2": { | |
"Description": "ARN of State Events SQS-DLQ Queues", | |
"Value": { | |
"Fn::GetAtt": [ | |
"SQS2", | |
"Arn" | |
] | |
} | |
}, | |
"S3BucketName": { | |
"Description": "SushiSink Bucket", | |
"Value": { | |
"Fn::GetAtt": [ | |
"BucketPolicy", | |
"Arn" | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment