Amazon ECS Amazon Linux 2 AMI deprecation - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon ECS Amazon Linux 2 AMI deprecation

Amazon is ending support for Amazon ECS Amazon Linux 2-optimized and accelerated AMIs on June 30, 2026. On January 12, 2026, Amazon Batch changed the default AMI for new Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023. Effective June 30, 2026, Amazon Batch will block creation of new Amazon ECS compute environments using Batch-provided Amazon Linux 2 AMIs. After this date, you can only create new Amazon ECS compute environments using Amazon Linux 2023 or customer-provided AMIs.

Important

We strongly recommend migrating your existing Amazon Batch Amazon ECS compute environments to Amazon Linux 2023 prior to June 30, 2026. Existing compute environments will continue to operate after this date, but will no longer receive software updates, security patches, or bug fixes from Amazon. It is your responsibility to maintain Amazon Linux 2 compute environments after end-of-life.

You can track the migration status of your affected Amazon ECS compute environments using Amazon Health planned lifecycle events. For more information, see Amazon Health Planned lifecycle events.

For more information about the Amazon Linux 2 end-of-life, see Amazon Linux 2 FAQs.

For information about differences between Amazon Linux 2 and Amazon Linux 2023, see Compare Amazon Linux 2023 and Amazon Linux 2 in the Amazon Linux 2023 User Guide.

For information about changes in Amazon Linux 2023 for Amazon ECS-optimized AMI, see Migrating from an Amazon Linux 2 to an Amazon Linux 2023 Amazon ECS-optimized AMI in the Amazon ECS User Guide.

For help migrating Amazon Batch Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023, see How to migrate from ECS AL2 to ECS AL2023.