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