AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy

Last Modified

Aug 28, 2026

August 28, 2026 at 10:03 PM UTC

Version

v8

Total Versions

4

Created

Aug 28, 2026

Actions

23

Risk

no risk signal

Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

IAM Access Analyzer (1)

  • Warning / TYPE_MISMATCH

    Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:s3:arn. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowReadOnlyAccessEC2Resource",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeVpcs",
            "ec2:DescribeVpcAttribute",
            "ec2:DescribeVpcEndpoints",
            "ec2:DescribeSubnets",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeInstances",
            "ec2:DescribeInternetGateways",
            "ec2:DescribeInstanceStatus",
            "ec2:DescribeNetworkAcls"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowGetConsoleOutput",
          "Effect": "Allow",
          "Action": [
            "ec2:GetConsoleOutput"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AllowReadOnlyAccessSSMResource",
          "Effect": "Allow",
          "Action": [
            "ssm:DescribeAutomationStepExecutions",
            "ssm:DescribeInstanceInformation",
            "ssm:DescribeAutomationExecutions",
            "ssm:DescribeActivations",
            "ssm:GetAutomationExecution",
            "ssm:GetServiceSetting"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowReadOnlyAccessIAMResource",
          "Effect": "Allow",
          "Action": [
            "iam:GetInstanceProfile",
            "iam:GetRole",
            "iam:SimulatePrincipalPolicy"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowExecuteSSMAutomation",
          "Effect": "Allow",
          "Action": [
            "ssm:StartAutomationExecution"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:document/AWS-*UnmanagedEC2*",
            "arn:aws:ssm:*:*:document/AWS-DiagnoseHybridActivationIssues",
            "arn:aws:ssm:*:*:automation-execution/*",
            "arn:aws:ssm:*:*:automation-definition/AWS-*UnmanagedEC2*:*",
            "arn:aws:ssm:*:*:automation-definition/AWS-DiagnoseHybridActivationIssues:*"
          ]
        },
        {
          "Sid": "AllowKMSOperations",
          "Effect": "Allow",
          "Action": [
            "kms:Decrypt",
            "kms:GenerateDataKey"
          ],
          "Resource": "arn:aws:kms:*:*:key/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/SystemsManagerManaged": "true"
            },
            "ArnLike": {
              "kms:EncryptionContext:aws:s3:arn": "arn:aws:s3:::do-not-delete-ssm-diagnosis-*"
            },
            "StringLike": {
              "kms:ViaService": "s3.*.amazonaws.com"
            },
            "Bool": {
              "aws:ViaAWSService": "true"
            }
          }
        },
        {
          "Sid": "AllowPassRoleOnSelfToSsm",
          "Effect": "Allow",
          "Action": "iam:PassRole",
          "Resource": "arn:aws:iam::*:role/AWS-SSM-DiagnosisExecutionRole*",
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": "ssm.amazonaws.com"
            }
          }
        }
      ]
    },
    "VersionId": "v8",
    "IsDefaultVersion": true,
    "CreateDate": "2026-08-28T21:37:07+00:00"
  }
}

Version History (7 recorded)

Raw history
v8updated

4 actions added

894e3e5

AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy - Policy Version v7

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

Mar 12, 2026

4ccb34d

AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy - Policy Version v7

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

Feb 12, 2026

9dd37fc

AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy - Policy Version v5

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

Feb 12, 2026

b1f0d25

AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy - Policy Version v3

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

Dec 24, 2025

5a94dc8

AWS-SSM-DiagnosisAutomation-ExecutionRolePolicy - Policy Version v2

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

Jul 16, 2025

7a944d2

Update detected

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

Nov 18, 2024

2631cef