AmazonSSMServiceRolePolicy

Last Modified

Jun 26, 2026

June 26, 2026 at 08:03 PM UTC

Version

v17

Total Versions

20

Created

Jun 26, 2026

Actions

53

Risk

High

An unrestricted escalation path, identity administration, secret reads or the power to switch off security monitoring. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • High

    Can take over existing resources that run as another role

    Grants every action of 1 documented escalation path on any resource with no condition.

    Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.

  • High

    Can read secrets

    Reads Parameter Store values, SecureString included where the KMS key allows it, on any resource with no condition.

    ssm:GetParameters

    Use with caution: Where the holder needs only some secrets, write your own policy scoped to their ARNs or tags, and limit decryption in the KMS key policies.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "ssm:CancelCommand",
            "ssm:GetCommandInvocation",
            "ssm:ListCommandInvocations",
            "ssm:ListCommands",
            "ssm:SendCommand",
            "ssm:GetAutomationExecution",
            "ssm:GetParameters",
            "ssm:StartAutomationExecution",
            "ssm:StopAutomationExecution",
            "ssm:ListTagsForResource",
            "ssm:GetCalendarState",
            "ssm:ListCloudConnectors"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "ssm:PutInventory"
          ],
          "Resource": [
            "*"
          ],
          "Condition": {
            "ForAllValues:StringEquals": {
              "ssm:InventoryTypeName": [
                "AWS:ComplianceItem",
                "AWS:PatchSummary"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ssm:UpdateServiceSetting",
            "ssm:GetServiceSetting"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:servicesetting/ssm/opsitem/*",
            "arn:aws:ssm:*:*:servicesetting/ssm/opsdata/*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeInstanceAttribute",
            "ec2:DescribeInstanceStatus",
            "ec2:DescribeInstances"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "lambda:InvokeFunction"
          ],
          "Resource": [
            "arn:aws:lambda:*:*:function:SSM*",
            "arn:aws:lambda:*:*:function:*:SSM*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "states:DescribeExecution",
            "states:StartExecution"
          ],
          "Resource": [
            "arn:aws:states:*:*:stateMachine:SSM*",
            "arn:aws:states:*:*:execution:SSM*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "resource-groups:ListGroups",
            "resource-groups:ListGroupResources",
            "resource-groups:GetGroupQuery"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:DescribeStacks",
            "cloudformation:ListStackResources"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "tag:GetResources"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "config:SelectResourceConfig"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "compute-optimizer:GetEC2InstanceRecommendations",
            "compute-optimizer:GetEnrollmentStatus"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "support:DescribeTrustedAdvisorChecks",
            "support:DescribeTrustedAdvisorCheckSummaries",
            "support:DescribeTrustedAdvisorCheckResult",
            "support:DescribeCases"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "config:DescribeComplianceByConfigRule",
            "config:DescribeComplianceByResource",
            "config:DescribeRemediationConfigurations",
            "config:DescribeConfigurationRecorders"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": "cloudwatch:DescribeAlarms",
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": "iam:PassRole",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": [
                "ssm.amazonaws.com"
              ]
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": "organizations:DescribeOrganization",
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": "cloudformation:ListStackSets",
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:ListStackInstances",
            "cloudformation:DescribeStackSetOperation",
            "cloudformation:DeleteStackSet"
          ],
          "Resource": "arn:aws:cloudformation:*:*:stackset/AWS-QuickSetup-SSM*:*"
        },
        {
          "Effect": "Allow",
          "Action": "cloudformation:DeleteStackInstances",
          "Resource": [
            "arn:aws:cloudformation:*:*:stackset/AWS-QuickSetup-SSM*:*",
            "arn:aws:cloudformation:*:*:stackset-target/AWS-QuickSetup-SSM*:*",
            "arn:aws:cloudformation:*:*:type/resource/*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "events:PutRule",
            "events:PutTargets"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "events:ManagedBy": "ssm.amazonaws.com"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "events:RemoveTargets",
            "events:DeleteRule"
          ],
          "Resource": [
            "arn:aws:events:*:*:rule/SSMExplorerManagedRule"
          ]
        },
        {
          "Effect": "Allow",
          "Action": "events:DescribeRule",
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": "securityhub:DescribeHub",
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": "resource-explorer-2:CreateManagedView",
          "Resource": "arn:aws:resource-explorer-2:*:*:managed-view/AWSManagedViewForSSM*"
        }
      ]
    },
    "VersionId": "v17",
    "IsDefaultVersion": true,
    "CreateDate": "2026-06-26T19:12:18+00:00"
  }
}

Version History (23 recorded)

Raw history
v17updated

1 action added

48b6fe0
v16updated

scope changed, no action added or removed

b66a127

AmazonSSMServiceRolePolicy - Policy Version v16

No recorded action delta - this version predates the change index. View the raw diff.

Jul 15, 2025

069f8d7

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 15, 2024

19510f0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 14, 2022

4ea68d2

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 26, 2021

6330b4b

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Mar 23, 2021

65789af

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jan 6, 2021

a300b31

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Dec 11, 2020

a22ae12

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 11, 2020

32046a1

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jul 31, 2020

277cba1

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jun 4, 2020

6fb447c

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 21, 2020

679b65e

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jan 23, 2020

8b45c16

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Oct 25, 2019

e96bf20

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

49aa1d0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

71619cf

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

8279033