EC2 Configurations - AWS Batch

EC2 Configurations

AWS Batch uses Amazon ECS optimized AMIs for EC2 and EC2 Spot compute environments. The default is Amazon Linux 2 (ECS_AL2). Before March 31, 2021, this default was Amazon Linux (ECS_AL1) for non-GPU, non AWS Graviton instances.

We made this change because the Amazon Linux AMI has discontinued standard support and entered into a maintenance support period, which is scheduled to end on June 30, 2023. The Amazon Linux AMI will continue to receive critical and important security updates for a reduced list of packages. During the maintenance support period, an Amazon Linux AMI might still be used for newly-created managed EC2 and EC2 Spot compute environments by specifying an Ec2Configuration parameter when creating a compute environment. After the end of the maintenance support period, an Amazon Linux AMI will no longer be a supported image type for new AWS Batch compute environments.

Existing compute environments and instances will not be affected by this change and will continue to operate with their configured AMI until the end of the maintenance support period. Amazon Linux AMI will no longer be a supported image type for AWS Batch compute environments. We encourage migration of all compute environments to Amazon Linux 2 prior to June 30, 2023. Not all instance types introduced after March 31, 2021, will be supported by the Amazon Linux AMI. If you use launch templates with custom user data, confirm that everything is configured as expected.

The storage configuration differs between the Amazon ECS optimized Amazon Linux AMI and Amazon Linux 2-based Amazon ECS optimized AMIs. For more information, see AMI storage configuration in the Amazon Elastic Container Service Developer Guide.