AWSBedrockAgentCoreRuntimeInstancesServiceRolePolicy

Last Modified

Aug 5, 2026

August 5, 2026 at 10:03 AM UTC

Version

v1

Total Versions

1

Created

Aug 5, 2026

Actions

16

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowDescribeResources",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeInstanceStatus",
            "ec2:DescribeInstances",
            "ec2:DescribeNetworkInterfaces",
            "ec2:DescribeVolumes",
            "ec2:DescribeLaunchTemplates",
            "ec2:DescribeLaunchTemplateVersions",
            "autoscaling:DescribeAutoScalingGroups"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowCleanupManagedLaunchTemplate",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteLaunchTemplate",
            "ec2:DeleteLaunchTemplateVersions"
          ],
          "Resource": "arn:aws:ec2:*:*:launch-template/*",
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AllowCleanupAutoScalingGroup",
          "Effect": "Allow",
          "Action": [
            "autoscaling:DeleteAutoScalingGroup",
            "autoscaling:CompleteLifecycleAction"
          ],
          "Resource": "arn:aws:autoscaling:*:*:autoScalingGroup:*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/bedrock-agentcore:capacity-provider-id": "false"
            }
          }
        },
        {
          "Sid": "AllowCleanupEventBridge",
          "Effect": "Allow",
          "Action": [
            "events:RemoveTargets",
            "events:DeleteRule"
          ],
          "Resource": "arn:aws:events:*:*:rule/*",
          "Condition": {
            "StringEquals": {
              "events:ManagedBy": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AllowCleanupEBSVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteVolume"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AllowDetachEBSVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:DetachVolume"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:instance/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AllowTerminateManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:TerminateInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:instance/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:ManagedResourceOperator": "bedrock-agentcore.amazonaws.com"
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2026-08-05T09:57:23+00:00"
  }
}

Version History (1 recorded)

Raw history
v1new policy

16 actions added

1af1cfb