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

How to Launch the Latest Amazon ECS-Optimized Amazon Linux AMI

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, but we recommend that you migrate your workloads to the Amazon Linux 2 variant, as support for the Amazon Linux AMI will end no later than June 30, 2020. For more information, see Amazon ECS-Optimized Amazon Linux 2 AMI.

The following are several ways that you can launch the latest Amazon ECS-optimized Amazon Linux AMI into your cluster:

  • The Amazon ECS console first-run wizard launches your container instances with the latest Amazon ECS-optimized Amazon Linux AMI. For more information, see Getting Started with Amazon ECS using Fargate.

  • You can launch your container instances manually in the Amazon EC2 console by following the procedures in Launching an Amazon ECS Container Instance. You could also choose the EC2 console link in the table below that corresponds to your cluster's region.

  • You can retrieve the current Amazon ECS-optimized Amazon Linux AMI programmatically using the SSM API. For more information, see Retrieving Amazon ECS-Optimized AMI Metadata.

  • Use the current Amazon ECS-optimized Amazon Linux AMI ID below to launch your instance using the AWS CLI, the AWS SDKs, or an AWS CloudFormation template.

The following table lists the current Amazon ECS-optimized Amazon Linux AMI IDs by Region.

Region AMI Name AMI ID EC2 Console Link
us-east-2 amzn-ami-2018.03.m-amazon-ecs-optimized ami-04b61a4d3b11cc8ea Launch instance
us-east-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0796380bc6e51157f Launch instance
us-west-2 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0af5f077b70dafc30 Launch instance
us-west-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0c9bd36a7394439a6 Launch instance
eu-west-3 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0ad28cde309fa32d1 Launch instance
eu-west-2 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0a9d4bf15de460a01 Launch instance
eu-west-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0dc3fa046ca0e570c Launch instance
eu-central-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0ce9ac8aed24e9ee5 Launch instance
eu-north-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-03d6b86b9e5ab4eff Launch instance
ap-northeast-2 amzn-ami-2018.03.m-amazon-ecs-optimized ami-076eb6ae0f9fc6903 Launch instance
ap-northeast-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-06cfa258272c37c0b Launch instance
ap-southeast-2 amzn-ami-2018.03.m-amazon-ecs-optimized ami-08f2011d0deea4967 Launch instance
ap-southeast-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-00ae2723e3c86c93e Launch instance
ca-central-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-014b53fb2043417a3 Launch instance
ap-south-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-04224e9b8e778d0d4 Launch instance
sa-east-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-0ec252e7e0588e54d Launch instance
us-gov-west-1 amzn-ami-2018.03.m-amazon-ecs-optimized ami-4cdfb02d Launch instance

For more information about previous versions and the corresponding Docker and Amazon ECS container agent versions, see Amazon ECS-Optimized Amazon Linux AMI Container Agent Versions.