Versions Compared

Key

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


Excerpt


Div
stylefloat:left; padding:0.5em 1em

Use the Start Systems Manager Automation Execution action from Bamboo tasks and notifications, Jira workflow transitions and Jira Service Desk Management automation rule executions to simplify common maintenance and deployment tasks of Amazon EC2 instances and other AWS resources via AWS Systems Manager Automation. Automation enables you to do the following.: 


Div
styleclear:both
  • Build Automation workflows to configure and manage instances and AWS resources.

  • Create custom workflows or use pre-defined workflows maintained by AWS.

  • Receive notifications about Automation tasks and workflows by using Amazon CloudWatch Events.

  • Monitor Automation progress and execution details by using the Amazon EC2 or the AWS Systems Manager console.


Integrations

You can use the Start Systems Manager Automation Execution 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 Start Systems Manager Automation Execution 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": [
                "ssm:StartAutomationExecution"
            ],
            "Resource": "*",
            "Effect": "Allow",
            "Sid": "SystemsManagerStartAutomationExecution"
        }
    ]
}

(lightbulb) Refer to Using Identity-Based Policies (IAM Policies) for AWS Systems Manager for details on how to create more granular/secure policies.

Configuration

To configure an Start Systems Manager Automation Execution action:

  1. Complete the following settings:

    Parameters

    Specify the action parameters according to the following skeleton in JSON format – refer to ssm . start-automation-execution for details:


    Tip

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


    Info
    titleEvent Data for Systems Manager Automation

    This is an opinionated example skeleton to illustrate operating AWS resources from Atlassian products – refer to the StartAutomationExecution API action for details on these and other available fields.


    Code Block
    languagejs
    titlePut Systems Manager Parameter skeleton - Atlassian Workflow Event
    linenumberstrue
    {
        "DocumentName": "AWS-PublishSNSNotification",
        "Parameters": {
            "TopicArn" : ["arn:aws:sns:eu-west-1:288727192237:aaws-quickstart-20170605-AutomationWithAWSQuickstartSNSTopic-12OFAKNZ2KKNR"],
    "Message": ["Automation with AWS (start automation execution): $event.simpleName with trace ID $event.traceId triggered at $event.timestamp and published indirectly via Systems Manager Automation."]
        },
        "Mode": "Auto"
    }



Entity Variables

You can inject contextual workflow 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 = "put-systemsmanager-parameter"

How-to Articles

Filter by label (Content by label)
max8
showSpacefalse
sorttitle
excerptTypesimple
cqllabel in ( "action" , "systemsmanager" , "parameter" ) 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
asktrue
limit8
topicautomation-with-aws,action,systemsmanager,parameter