I wrote a cloudformation template with this resource to create an SNS topic.
"mySNS" : {
"Type" : "AWS::SNS::Topic",
"Properties" : {
"Subscription" : [
{ "Endpoint" : { "Fn::GetAtt": [ "myLambda", "Arn" ] }, "Protocol" : "lambda" }
],
"TopicName" : "mySNS"
}
}
Is there a way to publish to this SNS topic from within the template? I can't find anything in CloudFormation template reference http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topic.html.