Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated regarding JSM rebranding.


Excerpt


Div
stylefloat:left;margin:0.5em 1em

Use the Publish SNS Message action to relay Bamboo tasks and notifications, Jira workflow transitions and Jira Service Desk Management automation rule executions via the Amazon Simple Notification Service (SNS), a fast, flexible, fully managed push notification service that lets you send individual messages or to fan-out messages to large numbers of recipients:


Div
styleclear:both

Amazon SNS makes it simple and cost effective to send push notifications to mobile device users, email recipients or even send messages to other distributed services.

With Amazon SNS, you can send notifications to Apple, Google, Fire OS, and Windows devices, as well as to Android devices in China with Baidu Cloud Push. You can use SNS to send SMS messages to mobile device users worldwide.

Beyond these endpoints, Amazon SNS can also deliver messages to Amazon Simple Queue Service (SQS), AWS Lambda functions, or to any HTTP endpoint.



Panel
borderColor#bbb
bgColor#eeeeee

On this page:

Table of Contents
maxLevel2
exclude(Popular.*|Recent.*)


Panel
borderColor#bbb
bgColor#eeeeee

Related pages:


Integrations

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

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "integration" and label in ( "bamboo" , "bitbucket" , "confluence" , "jira" ) and label = "action" and space = currentSpace ( )

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:

Code Block
languagejs
linenumberstrue
collapsetrue
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "sns:GetTopicAttributes",
                "sns:ListTopics",
                "sns:Publish"
            ],
            "Resource": "*",
            "Effect": "Allow",
            "Sid": "SNSPublishMessageAndDiscoverTopics"
        }
    ]
}

(lightbulb) 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:

  1. Complete the following settings:

    Parameters

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

    Info

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


    Tip

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


    Code Block
    languagejs
    titlePublish SNS Message skeleton
    linenumberstrue
    {
        "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:
Page Properties Report
firstcolumnName
sortByTitle
cqllabel = "entity" and space = currentSpace ( )

Examples

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
excerptTypesimple
cqllabel = "example" and label = "parameters" and label = "publish-sns-message"

How-to Articles

Filter by label (Content by label)
max8
showSpacefalse
sorttitle
excerptTypesimple
cqllabel in ( "action" , "sns" , "message" ) and label in ( "kb-how-to-article" , "kb-troubleshooting-article" ) and label = "automation-with-aws"

Frequently Asked Questions (FAQ)

Include Page
UAA:_FAQHeaderQuestionsForConfluence
UAA:_FAQHeaderQuestionsForConfluence

Questionslist macro
filterpopular
asktrue
limit8
topicautomation-with-aws,action,sns,message