AWSQuickSetupEnableDHMCExecutionPolicy

Last Modified

Oct 27, 2026

October 27, 2026 at 04:03 PM UTC

Version

v2

Total Versions

2

Created

Oct 27, 2026

Actions

7

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can grant itself more permissions

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • iam-009iam:AttachRolePolicyscoped
      • iam:AttachRolePolicy: condition iam:PolicyARN, on arn:aws:iam::*:role/AWS-QuickSetup-SSM-DefaultEC2MgmtRole-*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "iam:CreateRole",
            "iam:GetRole"
          ],
          "Resource": "arn:aws:iam::*:role/AWS-QuickSetup-SSM-DefaultEC2MgmtRole-*"
        },
        {
          "Effect": "Allow",
          "Action": "iam:PassRole",
          "Resource": "arn:aws:iam::*:role/AWS-QuickSetup-SSM-DefaultEC2MgmtRole-*",
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": "ssm.amazonaws.com"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:AttachRolePolicy"
          ],
          "Resource": "arn:aws:iam::*:role/AWS-QuickSetup-SSM-DefaultEC2MgmtRole-*",
          "Condition": {
            "ArnEquals": {
              "iam:PolicyARN": "arn:aws:iam::aws:policy/AmazonSSMManagedEC2InstanceDefaultPolicy"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "ssm:GetServiceSetting",
            "ssm:UpdateServiceSetting"
          ],
          "Resource": "arn:aws:ssm:*:*:servicesetting/ssm/managed-instance/default-ec2-instance-management-role"
        },
        {
          "Effect": "Allow",
          "Action": "ssm:GetCalendarState",
          "Resource": "arn:aws:ssm:*:*:document/*",
          "Condition": {
            "StringLike": {
              "aws:userid": "*:SystemsManager-Automation-ChangeCalendar-Check"
            },
            "StringEquals": {
              "ssm:DocumentType": "ChangeCalendar"
            }
          }
        }
      ]
    },
    "VersionId": "v2",
    "IsDefaultVersion": true,
    "CreateDate": "2026-10-27T15:57:09+00:00"
  }
}

Version History (3 recorded)

Raw history
v2updated

1 action added

f5f1f4a

AWSQuickSetupEnableDHMCExecutionPolicy - Policy Version v1

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

Mar 12, 2026

61e23c1

Update detected

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

Nov 15, 2024

020c8cd