AWSBatchFullAccess

Last Modified

Mar 12, 2026

March 12, 2026 at 09:25 PM UTC

Version

v7

Total Versions

8

Created

Oct 24, 2022

Actions

22

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.

    Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.

  • 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.

    • batch-001iam:PassRole + batch:RegisterJobDefinition + batch:SubmitJobscoped
      • iam:PassRole: on arn:aws:iam::*:role/AWSBatchServiceRole, arn:aws:iam::*:role/service-role/AWSBatchServiceRole, arn:aws:iam::*:role/ecsInstanceRole
    • batch-003iam:PassRole + batch:CreateComputeEnvironment + batch:CreateJobQueue + batch:RegisterJobDefinition + batch:SubmitJobscoped
      • iam:PassRole: on arn:aws:iam::*:role/AWSBatchServiceRole, arn:aws:iam::*:role/service-role/AWSBatchServiceRole, arn:aws:iam::*:role/ecsInstanceRole

    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

    Full batch access on every resource

    Uses batch:* with Resource "*" and no condition, so every action AWS adds to that service later is granted too.

    batch:*

    Use with caution: The grant grows every time the service does. For long-lived access, prefer a policy that lists the actions you actually need.

IAM Access Analyzer (1)

  • Suggestion / REDUNDANT_ACTION

    The 2 action(s) are redundant because they provide similar permissions. Update the policy to remove the redundant action such as: ecs:DescribeClusters. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "batch:*",
            "cloudwatch:GetMetricStatistics",
            "ec2:DescribeSubnets",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeKeyPairs",
            "ec2:DescribeVpcs",
            "ec2:DescribeImages",
            "ec2:DescribeLaunchTemplates",
            "ec2:DescribeLaunchTemplateVersions",
            "ecs:DescribeClusters",
            "ecs:Describe*",
            "ecs:List*",
            "eks:DescribeCluster",
            "eks:ListClusters",
            "logs:Describe*",
            "logs:Get*",
            "logs:TestMetricFilter",
            "logs:FilterLogEvents",
            "iam:ListInstanceProfiles",
            "iam:ListRoles"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": [
            "arn:aws:iam::*:role/AWSBatchServiceRole",
            "arn:aws:iam::*:role/service-role/AWSBatchServiceRole",
            "arn:aws:iam::*:role/ecsInstanceRole",
            "arn:aws:iam::*:instance-profile/ecsInstanceRole",
            "arn:aws:iam::*:role/iaws-ec2-spot-fleet-role",
            "arn:aws:iam::*:role/aws-ec2-spot-fleet-role",
            "arn:aws:iam::*:role/AWSBatchJobRole*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:CreateServiceLinkedRole"
          ],
          "Resource": "arn:aws:iam::*:role/*Batch*",
          "Condition": {
            "StringEquals": {
              "iam:AWSServiceName": "batch.amazonaws.com"
            }
          }
        }
      ]
    },
    "VersionId": "v7",
    "IsDefaultVersion": true,
    "CreateDate": "2022-10-24T16:09:09+00:00"
  }
}

Version History (11 recorded)

Raw history

AWSBatchFullAccess - Policy Version v7

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

Mar 12, 2026

e1b5afe

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.

Oct 24, 2022

83d8e9d

Update detected

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

Mar 10, 2021

7d52b89

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