AutoScalingServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v10

Total Versions

14

Created

Nov 12, 2025

Actions

37

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.

    • ec2-002ec2:ModifyInstanceAttribute + ec2:StopInstances + ec2:StartInstancesunrestricted

    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.

  • Medium

    Can launch resources that run as a more privileged role

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

    • ec2-001iam:PassRole + ec2:RunInstancesscoped
      • iam:PassRole: condition iam:PassedToService
    • ec2-003iam:PassRole + ec2:RequestSpotInstancesscoped
      • iam:PassRole: condition iam:PassedToService

    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": [
        {
          "Sid": "EC2InstanceManagement",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachClassicLinkVpc",
            "ec2:CancelSpotInstanceRequests",
            "ec2:CreateReplaceRootVolumeTask",
            "ec2:CreateFleet",
            "ec2:CreateTags",
            "ec2:DeleteTags",
            "ec2:Describe*",
            "ec2:DetachClassicLinkVpc",
            "ec2:GetInstanceTypesFromInstanceRequirements",
            "ec2:GetSecurityGroupsForVpc",
            "ec2:ModifyInstanceAttribute",
            "ec2:RequestSpotInstances",
            "ec2:RunInstances",
            "ec2:StartInstances",
            "ec2:StopInstances",
            "ec2:TerminateInstances"
          ],
          "Resource": "*"
        },
        {
          "Sid": "EC2InstanceProfileManagement",
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": "*",
          "Condition": {
            "StringLike": {
              "iam:PassedToService": "ec2.amazonaws.com*"
            }
          }
        },
        {
          "Sid": "EC2SpotManagement",
          "Effect": "Allow",
          "Action": [
            "iam:CreateServiceLinkedRole"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "iam:AWSServiceName": "spot.amazonaws.com"
            }
          }
        },
        {
          "Sid": "ELBManagement",
          "Effect": "Allow",
          "Action": [
            "elasticloadbalancing:Register*",
            "elasticloadbalancing:Deregister*",
            "elasticloadbalancing:Describe*"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CWManagement",
          "Effect": "Allow",
          "Action": [
            "cloudwatch:DeleteAlarms",
            "cloudwatch:DescribeAlarms",
            "cloudwatch:GetMetricData",
            "cloudwatch:PutMetricAlarm"
          ],
          "Resource": "*"
        },
        {
          "Sid": "SNSManagement",
          "Effect": "Allow",
          "Action": [
            "sns:Publish"
          ],
          "Resource": "*"
        },
        {
          "Sid": "EventBridgeRuleManagement",
          "Effect": "Allow",
          "Action": [
            "events:PutRule",
            "events:PutTargets",
            "events:RemoveTargets",
            "events:DeleteRule"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "events:ManagedBy": "autoscaling.amazonaws.com"
            }
          }
        },
        {
          "Sid": "SystemsManagerParameterManagement",
          "Effect": "Allow",
          "Action": [
            "ssm:GetParameters"
          ],
          "Resource": "*"
        },
        {
          "Sid": "VpcLatticeManagement",
          "Effect": "Allow",
          "Action": [
            "vpc-lattice:DeregisterTargets",
            "vpc-lattice:GetTargetGroup",
            "vpc-lattice:ListTargets",
            "vpc-lattice:ListTargetGroups",
            "vpc-lattice:RegisterTargets"
          ],
          "Resource": "*"
        },
        {
          "Sid": "ResourceGroupsManagement",
          "Effect": "Allow",
          "Action": [
            "resource-groups:ListGroupResources"
          ],
          "Resource": "arn:*:resource-groups:*:*:group/*"
        }
      ]
    },
    "VersionId": "v10",
    "IsDefaultVersion": true,
    "CreateDate": "2025-11-12T18:19:06+00:00"
  }
}

Version History (17 recorded)

Raw history
v10updated

scope changed, no action added or removed

2a96dbc

AutoScalingServiceRolePolicy - Policy Version v10

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

Nov 12, 2025

9b64bc1

Update detected

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

Nov 15, 2024

6917425

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.

Feb 29, 2024

c8078ab

Update detected

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

Dec 6, 2022

7b01949

Update detected

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

Oct 30, 2021

7175a9c

Update detected

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

Mar 30, 2021

8613d22

Update detected

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

Feb 5, 2021

e0cce6a

Update detected

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

Oct 30, 2020

0e90da9

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

`2019-08-29`

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

Aug 29, 2019

5016d52

I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not

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

Jul 12, 2019

9d2dff1

First commit

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

Feb 10, 2019

ad4c2e8