Skip to main content
IAM Policy Map

BatchServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Provides access for the AWS Batch service to manage the required resources, including Amazon EC2 and Amazon ECS resources.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/BatchServiceRolePolicy
Default version
v8
Created
Last edited
Services
autoscaling, ec2, ecs, eks, iam, logs

Control-plane actions (74)

By access level: 27 List, 9 Read, 4 Tagging, 34 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC2 Auto Scaling15 of 685 List, 1 Tagging, 9 Write; 10 restricted, 1 conditionalautoscaling:CreateAutoScalingGroup, autoscaling:CreateLaunchConfiguration, autoscaling:CreateOrUpdateTags, autoscaling:DeleteAutoScalingGroup, autoscaling:DeleteLaunchConfiguration, autoscaling:DescribeAccountLimits, autoscaling:DescribeAutoScalingGroups, autoscaling:DescribeAutoScalingInstances, autoscaling:DescribeLaunchConfigurations, autoscaling:DescribeScalingActivities, autoscaling:PutNotificationConfiguration, autoscaling:SetDesiredCapacity and 3 more
EC224 of 83416 List, 1 Tagging, 7 Write; 7 restricted, 6 conditionalec2:CancelSpotFleetRequests, ec2:CreateLaunchTemplate, ec2:CreateTags, ec2:DeleteLaunchTemplate, ec2:DescribeAccountAttributes, ec2:DescribeImageAttribute, ec2:DescribeImages, ec2:DescribeInstanceAttribute, ec2:DescribeInstanceStatus, ec2:DescribeInstances, ec2:DescribeKeyPairs, ec2:DescribeLaunchTemplateVersions and 12 more
Elastic Container Service26 of 925 List, 6 Read, 2 Tagging, 13 Write; 13 restricted, 2 conditionalecs:CreateCapacityProvider, ecs:CreateCluster, ecs:DeleteCapacityProvider, ecs:DeleteCluster, ecs:DeregisterContainerInstance, ecs:DeregisterTaskDefinition, ecs:DescribeCapacityProviders, ecs:DescribeClusters, ecs:DescribeContainerInstances, ecs:DescribeTaskDefinition, ecs:DescribeTasks, ecs:ListAccountSettings and 14 more
EKS1 of 741 Read; 0 restricted, 0 conditionaleks:DescribeCluster
IAM4 of 1902 Read, 2 Write; 2 restricted, 2 conditionaliam:CreateServiceLinkedRole, iam:GetInstanceProfile, iam:GetRole, iam:PassRole
CloudWatch Logs4 of 1331 List, 3 Write; 3 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:DescribeLogGroups, logs:PutLogEvents
EC2 Auto Scaling: 15 actions
  • autoscaling:CreateAutoScalingGroup (Write)
  • autoscaling:CreateLaunchConfiguration (Write)
  • autoscaling:CreateOrUpdateTags (Tagging)
  • autoscaling:DeleteAutoScalingGroup (Write)
  • autoscaling:DeleteLaunchConfiguration (Write)
  • autoscaling:DescribeAccountLimits (List)
  • autoscaling:DescribeAutoScalingGroups (List)
  • autoscaling:DescribeAutoScalingInstances (List)
  • autoscaling:DescribeLaunchConfigurations (List)
  • autoscaling:DescribeScalingActivities (List)
  • autoscaling:PutNotificationConfiguration (Write)
  • autoscaling:SetDesiredCapacity (Write)
  • autoscaling:SuspendProcesses (Write)
  • autoscaling:TerminateInstanceInAutoScalingGroup (Write)
  • autoscaling:UpdateAutoScalingGroup (Write)
EC2: 24 actions
  • ec2:CancelSpotFleetRequests (Write)
  • ec2:CreateLaunchTemplate (Write)
  • ec2:CreateTags (Tagging)
  • ec2:DeleteLaunchTemplate (Write)
  • ec2:DescribeAccountAttributes (List)
  • ec2:DescribeImageAttribute (List)
  • ec2:DescribeImages (List)
  • ec2:DescribeInstanceAttribute (List)
  • ec2:DescribeInstanceStatus (List)
  • ec2:DescribeInstances (List)
  • ec2:DescribeKeyPairs (List)
  • ec2:DescribeLaunchTemplateVersions (List)
  • ec2:DescribeSecurityGroups (List)
  • ec2:DescribeSpotFleetInstances (List)
  • ec2:DescribeSpotFleetRequestHistory (List)
  • ec2:DescribeSpotFleetRequests (List)
  • ec2:DescribeSpotInstanceRequests (List)
  • ec2:DescribeSpotPriceHistory (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeVpcClassicLink (List)
  • ec2:ModifySpotFleetRequest (Write)
  • ec2:RequestSpotFleet (Write)
  • ec2:RunInstances (Write)
  • ec2:TerminateInstances (Write)
Elastic Container Service: 26 actions
  • ecs:CreateCapacityProvider (Write)
  • ecs:CreateCluster (Write)
  • ecs:DeleteCapacityProvider (Write)
  • ecs:DeleteCluster (Write)
  • ecs:DeregisterContainerInstance (Write)
  • ecs:DeregisterTaskDefinition (Write)
  • ecs:DescribeCapacityProviders (Read)
  • ecs:DescribeClusters (Read)
  • ecs:DescribeContainerInstances (Read)
  • ecs:DescribeTaskDefinition (Read)
  • ecs:DescribeTasks (Read)
  • ecs:ListAccountSettings (Read)
  • ecs:ListClusters (List)
  • ecs:ListContainerInstances (List)
  • ecs:ListTaskDefinitionFamilies (List)
  • ecs:ListTaskDefinitions (List)
  • ecs:ListTasks (List)
  • ecs:PutClusterCapacityProviders (Write)
  • ecs:RegisterTaskDefinition (Write)
  • ecs:RunTask (Write)
  • ecs:StartTask (Write)
  • ecs:StopTask (Write)
  • ecs:TagResource (Tagging)
  • ecs:UntagResource (Tagging)
  • ecs:UpdateCapacityProvider (Write)
  • ecs:UpdateCluster (Write)
EKS: 1 actions
  • eks:DescribeCluster (Read)
IAM: 4 actions
  • iam:CreateServiceLinkedRole (Write)
  • iam:GetInstanceProfile (Read)
  • iam:GetRole (Read)
  • iam:PassRole (Write)
CloudWatch Logs: 4 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:DescribeLogGroups (List)
  • logs:PutLogEvents (Write)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: No (service-linked role policy).

Why this tier

  • Grants 38 write, tagging or permissions-management actions, short of full control of any service.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AWSBatchPolicyStatement1",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeAccountAttributes",
        "ec2:DescribeInstances",
        "ec2:DescribeInstanceStatus",
        "ec2:DescribeInstanceAttribute",
        "ec2:DescribeSubnets",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeKeyPairs",
        "ec2:DescribeImages",
        "ec2:DescribeImageAttribute",
        "ec2:DescribeSpotInstanceRequests",
        "ec2:DescribeSpotFleetInstances",
        "ec2:DescribeSpotFleetRequests",
        "ec2:DescribeSpotPriceHistory",
        "ec2:DescribeSpotFleetRequestHistory",
        "ec2:DescribeVpcClassicLink",
        "ec2:DescribeLaunchTemplateVersions",
        "ec2:RequestSpotFleet",
        "autoscaling:DescribeAccountLimits",
        "autoscaling:DescribeAutoScalingGroups",
        "autoscaling:DescribeLaunchConfigurations",
        "autoscaling:DescribeAutoScalingInstances",
        "autoscaling:DescribeScalingActivities",
        "eks:DescribeCluster",
        "ecs:DescribeCapacityProviders",
        "ecs:DescribeClusters",
        "ecs:DescribeContainerInstances",
        "ecs:DescribeTaskDefinition",
        "ecs:DescribeTasks",
        "ecs:ListClusters",
        "ecs:ListContainerInstances",
        "ecs:ListTaskDefinitionFamilies",
        "ecs:ListTaskDefinitions",
        "ecs:ListTasks",
        "ecs:DeregisterTaskDefinition",
        "ecs:TagResource",
        "ecs:ListAccountSettings",
        "logs:DescribeLogGroups",
        "iam:GetInstanceProfile",
        "iam:GetRole"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AWSBatchPolicyStatement2",
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream"
      ],
      "Resource": "arn:aws:logs:*:*:log-group:/aws/batch/job*"
    },
    {
      "Sid": "AWSBatchPolicyStatement3",
      "Effect": "Allow",
      "Action": [
        "logs:PutLogEvents"
      ],
      "Resource": "arn:aws:logs:*:*:log-group:/aws/batch/job*:log-stream:*"
    },
    {
      "Sid": "AWSBatchPolicyStatement4",
      "Effect": "Allow",
      "Action": [
        "autoscaling:CreateOrUpdateTags"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/AWSBatchServiceTag": "false"
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement5",
      "Effect": "Allow",
      "Action": "iam:PassRole",
      "Resource": [
        "*"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "ec2.amazonaws.com",
            "ec2.amazonaws.com.cn",
            "ecs.amazonaws.com",
            "ecs-tasks.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement6",
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": [
            "spot.amazonaws.com",
            "spotfleet.amazonaws.com",
            "autoscaling.amazonaws.com",
            "ecs.amazonaws.com",
            "ecs-compute.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement7",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateLaunchTemplate"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/AWSBatchServiceTag": "false"
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement8",
      "Effect": "Allow",
      "Action": [
        "ec2:TerminateInstances",
        "ec2:CancelSpotFleetRequests",
        "ec2:ModifySpotFleetRequest",
        "ec2:DeleteLaunchTemplate"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:ResourceTag/AWSBatchServiceTag": "false"
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement9",
      "Effect": "Allow",
      "Action": [
        "autoscaling:CreateLaunchConfiguration",
        "autoscaling:DeleteLaunchConfiguration"
      ],
      "Resource": "arn:aws:autoscaling:*:*:launchConfiguration:*:launchConfigurationName/AWSBatch*"
    },
    {
      "Sid": "AWSBatchPolicyStatement10",
      "Effect": "Allow",
      "Action": [
        "autoscaling:CreateAutoScalingGroup",
        "autoscaling:UpdateAutoScalingGroup",
        "autoscaling:SetDesiredCapacity",
        "autoscaling:DeleteAutoScalingGroup",
        "autoscaling:SuspendProcesses",
        "autoscaling:PutNotificationConfiguration",
        "autoscaling:TerminateInstanceInAutoScalingGroup"
      ],
      "Resource": "arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/AWSBatch*"
    },
    {
      "Sid": "AWSBatchPolicyStatement11",
      "Effect": "Allow",
      "Action": [
        "ecs:DeleteCluster",
        "ecs:DeregisterContainerInstance",
        "ecs:PutClusterCapacityProviders",
        "ecs:RunTask",
        "ecs:StartTask",
        "ecs:StopTask",
        "ecs:UpdateCluster"
      ],
      "Resource": "arn:aws:ecs:*:*:cluster/AWSBatch*"
    },
    {
      "Sid": "AWSBatchPolicyStatement12",
      "Effect": "Allow",
      "Action": [
        "ecs:RunTask",
        "ecs:StartTask",
        "ecs:StopTask"
      ],
      "Resource": "arn:aws:ecs:*:*:task-definition/*"
    },
    {
      "Sid": "AWSBatchPolicyStatement13",
      "Effect": "Allow",
      "Action": [
        "ecs:StopTask"
      ],
      "Resource": "arn:aws:ecs:*:*:task/*/*"
    },
    {
      "Sid": "AWSBatchPolicyStatement14",
      "Effect": "Allow",
      "Action": [
        "ecs:CreateCluster",
        "ecs:RegisterTaskDefinition"
      ],
      "Resource": "*",
      "Condition": {
        "Null": {
          "aws:RequestTag/AWSBatchServiceTag": "false"
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement15",
      "Effect": "Allow",
      "Action": "ec2:RunInstances",
      "Resource": [
        "arn:aws:ec2:*::image/*",
        "arn:aws:ec2:*::snapshot/*",
        "arn:aws:ec2:*:*:subnet/*",
        "arn:aws:ec2:*:*:network-interface/*",
        "arn:aws:ec2:*:*:security-group/*",
        "arn:aws:ec2:*:*:volume/*",
        "arn:aws:ec2:*:*:key-pair/*",
        "arn:aws:ec2:*:*:launch-template/*",
        "arn:aws:ec2:*:*:placement-group/*",
        "arn:aws:ec2:*:*:capacity-reservation/*",
        "arn:aws:ec2:*:*:elastic-gpu/*",
        "arn:aws:elastic-inference:*:*:elastic-inference-accelerator/*",
        "arn:aws:resource-groups:*:*:group/*"
      ]
    },
    {
      "Sid": "AWSBatchPolicyStatement16",
      "Effect": "Allow",
      "Action": "ec2:RunInstances",
      "Resource": "arn:aws:ec2:*:*:instance/*",
      "Condition": {
        "Null": {
          "aws:RequestTag/AWSBatchServiceTag": "false"
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement17",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags"
      ],
      "Resource": [
        "*"
      ],
      "Condition": {
        "StringEquals": {
          "ec2:CreateAction": [
            "RunInstances",
            "CreateLaunchTemplate",
            "RequestSpotFleet"
          ]
        }
      }
    },
    {
      "Sid": "AWSBatchPolicyStatement18",
      "Effect": "Allow",
      "Action": [
        "ecs:CreateCapacityProvider",
        "ecs:UpdateCapacityProvider",
        "ecs:DeleteCapacityProvider"
      ],
      "Resource": "arn:aws:ecs:*:*:capacity-provider/AWSBatch*"
    },
    {
      "Sid": "AWSBatchPolicyStatement19",
      "Effect": "Allow",
      "Action": [
        "ecs:TagResource",
        "ecs:UntagResource"
      ],
      "Resource": [
        "arn:aws:ecs:*:*:capacity-provider/AWSBatch*"
      ]
    }
  ]
}

Version history

Current version v8, edited by AWS on 2026-08-05. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

This policy cannot be attached to users, groups or roles, so there are no attach snippets.

Sources

Pending editorial review. No editorial sources are listed yet.