Tutorial: Create IAM roles for your compute environments and container instances
Your AWS Batch compute environments and container instances require AWS account credentials to make calls to other AWS APIs on your behalf. Create an AWS Identity and Access Management role that provides these credentials to your compute environments and container instances, then associate that role with your compute environments.
Note
To verify that your AWS account has the required permissions, see Initial IAM service set up for your account.
The AWS Batch compute environment and container instance roles are automatically created for you in the console first-run experience. So, if you intend to use the AWS Batch console, you can move ahead to the next section. If you plan to use the AWS CLI instead, complete the procedures in Use service-linked roles for AWS Batch and Amazon ECS instance role before creating your first compute environment.