Amazon Elastic Container Service
Developer Guide (API Version 2014-11-13)

Amazon ECS-Optimized Amazon Linux 2 AMI

The Amazon ECS-optimized Amazon Linux 2 AMI is the recommended AMI to use for launching your Amazon ECS container instances. Although you can create your own container instance AMI that meets the basic specifications outlined in Container Instance AMIs, the Amazon ECS-optimized Amazon Linux 2 AMI is preconfigured and tested on Amazon ECS by AWS engineers. It is the simplest AMI for you to get started and to get your containers running on AWS quickly.

Note

Amazon ECS vends Linux AMIs that are optimized for the service in two variants. The latest and recommended version is based on Amazon Linux 2. Amazon ECS also vends AMIs that are based on the Amazon Linux AMI. We recommend that you migrate your workloads to the Amazon Linux 2 variant, as support for the Amazon Linux AMI ends no later than June 30, 2020.

The current Amazon ECS-optimized Amazon Linux 2 AMI consists of:

  • The latest minimal version of the Amazon Linux 2

  • The latest version of the Amazon ECS container agent (1.22.0)

  • The recommended version of Docker for the latest Amazon ECS container agent (18.06.1-ce)

  • The latest version of the ecs-init package to run and monitor the Amazon ECS agent (1.22.0-1)

The Amazon ECS-optimized Amazon Linux 2 AMI metadata, including the AMI ID, can be retrieved programmatically. For more information, see Retrieving Amazon ECS-Optimized AMI Metadata.

The current Amazon ECS-optimized Amazon Linux 2 AMI IDs by region are listed below for reference.

Region AMI Name AMI ID EC2 console link
us-east-2 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-037a92bf1efdb11a2 Launch instance
us-east-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0a6b7e0cc0b1f464f Launch instance
us-west-2 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0c1f4871ebaae6d86 Launch instance
us-west-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0184f498956de7db5 Launch instance
eu-west-3 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0caadc4f0db31a303 Launch instance
eu-west-2 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0b5225210a12d9951 Launch instance
eu-west-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0acc9f8be17a41897 Launch instance
eu-central-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-055aa9664ef169e25 Launch instance
ap-northeast-2 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0bdc871079baf9649 Launch instance
ap-northeast-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0c38293d60d98af86 Launch instance
ap-southeast-2 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0eed1c915ea891aca Launch instance
ap-southeast-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0e28ff4e3f1776d86 Launch instance
ca-central-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-02c80e9173258d289 Launch instance
ap-south-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-0b7c3be99909df6ef Launch instance
sa-east-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-078146697425f25a7 Launch instance
us-gov-west-1 amzn2-ami-ecs-hvm-2.0.20181112-x86_64-ebs ami-31b5d150 Launch instance