BedrockAgentCoreRuntimeInstancesOperatorRolePolicy

Last Modified

Aug 6, 2026

August 6, 2026 at 11:03 AM UTC

Version

v2

Total Versions

2

Created

Aug 6, 2026

Actions

42

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 launch resources that run as a more privileged role

    Grants the actions of 1 documented escalation path, 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, on arn:aws:iam::*:role/AmazonBedrockAgentCoreCapacityProviderDefaultInstanceRole*, arn:aws:iam::*:role/service-role/AmazonBedrockAgentCoreCapacityProviderDefaultInstanceRole*

    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.

  • Medium

    Can take over existing resources that run as another role

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

    • ec2-005ec2:CreateLaunchTemplateVersion + ec2:ModifyLaunchTemplatescoped
      • ec2:CreateLaunchTemplateVersion: condition ec2:ManagedResourceOperator, on arn:aws:ec2:*:*:launch-template/*
      • ec2:ModifyLaunchTemplate: condition ec2:ManagedResourceOperator, on arn:aws:ec2:*:*:launch-template/*

    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": "DescribeComputeResources",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeAvailabilityZones",
            "ec2:DescribeCapacityReservations",
            "ec2:DescribeInstances",
            "ec2:DescribeInstanceStatus",
            "ec2:DescribeInstanceTypeOfferings",
            "ec2:DescribeInstanceTypes",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "ec2:DescribeVolumes",
            "ec2:DescribeLaunchTemplateVersions",
            "ec2:DescribeNetworkInterfaces",
            "autoscaling:DescribeAutoScalingInstances",
            "autoscaling:DescribeAutoScalingGroups"
          ],
          "Resource": "*"
        },
        {
          "Sid": "DescribeEventBridgeRule",
          "Effect": "Allow",
          "Action": [
            "events:DescribeRule"
          ],
          "Resource": "arn:*:events:*:*:rule/agentcore-lifecycle-events-*"
        },
        {
          "Sid": "CreateVolumeForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*"
          ],
          "Condition": {
            "Null": {
              "aws:RequestTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "AttachVolumeForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachVolume"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:instance/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "CreateLaunchTemplateForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateLaunchTemplate"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "Null": {
              "aws:RequestTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "ModifyLaunchTemplateForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateLaunchTemplateVersion",
            "ec2:ModifyLaunchTemplate"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "CreateAutoScalingForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "autoscaling:CreateAutoScalingGroup"
          ],
          "Resource": "arn:*:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/agentcore-managed-instances-*",
          "Condition": {
            "Null": {
              "aws:RequestTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "UpdateAndLaunchAutoScaling",
          "Effect": "Allow",
          "Action": [
            "autoscaling:UpdateAutoScalingGroup",
            "autoscaling:PutLifecycleHook",
            "autoscaling:CompleteLifecycleAction",
            "autoscaling:LaunchInstances"
          ],
          "Resource": "arn:*:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/agentcore-managed-instances-*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "NetworkingAccessForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:RunInstances",
            "ec2:CreateNetworkInterface",
            "ec2:CreateFleet"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:subnet/*",
            "arn:aws:ec2:*:*:security-group/*"
          ]
        },
        {
          "Sid": "AmazonAMIsAccessForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:RunInstances",
            "ec2:CreateFleet"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:image/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:Owner": "amazon"
            }
          }
        },
        {
          "Sid": "CreateFleetAccess",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateFleet"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:fleet/*"
          ]
        },
        {
          "Sid": "LaunchWithManagedLaunchTemplate",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateFleet",
            "ec2:RunInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "Null": {
              "aws:ResourceTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "ProvisionEC2InstancesForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateFleet",
            "ec2:RunInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ec2:*:*:network-interface/*",
            "arn:aws:ec2:*:*:volume/*"
          ],
          "Condition": {
            "Null": {
              "aws:RequestTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "TagOnCreateManagedResources",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:fleet/*",
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ec2:*:*:network-interface/*",
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateFleet",
                "CreateLaunchTemplate",
                "RunInstances",
                "CreateVolume",
                "CreateNetworkInterface"
              ]
            }
          }
        },
        {
          "Sid": "TagAfterCreateManagedResources",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:fleet/*",
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ec2:*:*:network-interface/*",
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            },
            "ForAllValues:StringLike": {
              "aws:TagKeys": "bedrock-agentcore:*"
            }
          }
        },
        {
          "Sid": "AttachNetworkInterfaceToManagedInstance",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachNetworkInterface"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ec2:*:*:network-interface/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "EventBridgeAccessForManagedRule",
          "Effect": "Allow",
          "Action": [
            "events:PutRule",
            "events:PutTargets",
            "events:RemoveTargets"
          ],
          "Resource": "arn:*:events:*:*:rule/agentcore-lifecycle-events-*",
          "Condition": {
            "StringEquals": {
              "events:ManagedBy": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "ServiceLinkedRoleAccessForAutoScaling",
          "Effect": "Allow",
          "Action": [
            "iam:CreateServiceLinkedRole"
          ],
          "Resource": [
            "arn:aws:iam::*:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling"
          ]
        },
        {
          "Sid": "PassRoleToManagedInstances",
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": [
            "arn:aws:iam::*:role/AmazonBedrockAgentCoreCapacityProviderDefaultInstanceRole*",
            "arn:aws:iam::*:role/service-role/AmazonBedrockAgentCoreCapacityProviderDefaultInstanceRole*"
          ],
          "Condition": {
            "StringLike": {
              "iam:PassedToService": "ec2.*"
            }
          }
        }
      ]
    },
    "VersionId": "v2",
    "IsDefaultVersion": true,
    "CreateDate": "2026-08-06T10:12:23+00:00"
  }
}

Version History (2 recorded)

Raw history
v2updated

scope changed, no action added or removed

4369cdc
v1new policy

34 actions added

3989ecd
1 never-before-seen action: autoscaling:LaunchInstances
2 permissions management, incl. iam:CreateServiceLinkedRole: iam:CreateServiceLinkedRole, iam:PassRole