Cfn
view release on metacpan or search on metacpan
t/cfn_json/SNSToSQS.json view on Meta::CPAN
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "This Template creates an SNS topic that can send messages to two SQS queues with appropriate permissions for one IAM user to publish to the topic and another to read messages from the queues. MySNSTopic is set up to publish to two ...
"Parameters" : {
"MyPublishUserPassword": {
"NoEcho": "true",
"Type": "String",
"Description" : "Password for the IAM user MyPublishUser",
"MinLength": "1",
"MaxLength": "41",
"AllowedPattern" : "[a-zA-Z0-9]*",
"ConstraintDescription" : "must contain only alphanumeric characters."
},
"MyQueueUserPassword": {
"NoEcho": "true",
"Type": "String",
"Description" : "Password for the IAM user MyQueueUser",
"MinLength": "1",
"MaxLength": "41"
}
},
"Resources" : {
"MySNSTopic" : {
"Type" : "AWS::SNS::Topic",
"Properties" : {
"Subscription" : [
{
"Endpoint" : { "Fn::GetAtt" : ["MyQueue1", "Arn"]},
"Protocol" : "sqs"
},
{
"Endpoint" : { "Fn::GetAtt" : ["MyQueue2", "Arn"]},
"Protocol" : "sqs"
}
]
}
},
"MyQueue1" : {
"Type" : "AWS::SQS::Queue"
},
"MyQueue2" : {
"Type" : "AWS::SQS::Queue"
},
"MyPublishUser" : {
"Type" : "AWS::IAM::User",
"Properties" : {
"LoginProfile": {
"Password": {"Ref" : "MyPublishUserPassword"}
}
}
},
"MyPublishUserKey" : {
"Type" : "AWS::IAM::AccessKey",
"Properties" : {
"UserName" : {"Ref": "MyPublishUser"}
}
},
"MyPublishTopicGroup" : {
"Type" : "AWS::IAM::Group",
"Properties" : {
( run in 0.574 second using v1.01-cache-2.11-cpan-5a3173703d6 )