Using the Publish SNS Message action

Integrations

You can use the Publish SNS Message action with the following integrations:

Requirements

The Publish SNS Message action requires sufficient IAM permissions - an adequate IAM policy similar to the one provisioned by the Automation with AWS (Core) CloudFormation template might look as follows:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "Version": "2012-10-17", "Statement": [ { "Action": [ "sns:GetTopicAttributes", "sns:ListTopics", "sns:Publish" ], "Resource": "*", "Effect": "Allow", "Sid": "SNSPublishMessageAndDiscoverTopics" } ] }

 Refer to Controlling User Access to Your AWS Account for details on how to create more granular/secure policies, including a few Example Policies for Amazon SNS.

Configuration

To configure a Publish SNS Message action:

Complete the following settings:

 

Parameters

Specify the action parameters according to the following skeleton in JSON format – refer to sns . publish for details:

You must specify exactly one parameter out of TopicArn, PhoneNumber or TargetArn.

You can inject contextual variables into the remote action payload, refer to Entity Variables for details.

Publish SNS Message skeleton

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 {     "TopicArn": "",     "TargetArn": "",     "PhoneNumber": "",     "Message": "",     "Subject": "",     "MessageStructure": "",     "MessageAttributes": {         "KeyName": {             "DataType": "",             "StringValue": "",             "BinaryValue": null         }     } }

Entity Variables

You can inject contextual variables with workflow entities into the remote action payload template – currently available entities are:

Examples

How-to Articles

Frequently Asked Questions (FAQ)