From 79b2ab4bab40e23687bdeb383014b7ebbca269c9 Mon Sep 17 00:00:00 2001 From: Kiah Imani Date: Mon, 24 Aug 2026 06:49:45 -0400 Subject: [PATCH] DOC-405: Drop Amazon Linux 2 AMI from EC2 Docker VMM docs Amazon Linux 2 reached AWS end-of-life on June 30, 2026, and localstack-pro#8250 removed it from the set of AMIs LocalStack pre-loads for the EC2 Docker VM manager. Remove it from the default AMI list in ec2.mdx and add a note explaining how to manually register it if still needed. Co-Authored-By: Claude Sonnet 5 --- src/content/docs/aws/services/ec2.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/content/docs/aws/services/ec2.mdx b/src/content/docs/aws/services/ec2.mdx index 60319161..3c0e15ac 100644 --- a/src/content/docs/aws/services/ec2.mdx +++ b/src/content/docs/aws/services/ec2.mdx @@ -251,12 +251,21 @@ The above example will make LocalStack treat the `ubuntu:focal` Docker image as At startup, LocalStack downloads the following AMIs that can be used to launch Dockerized instances. - Ubuntu 22.04: `ami-df5de72bdb3b` - Amazon Linux 2023: `ami-024f768332f0` -- Amazon Linux 2: `ami-07b643b5e45e` :::note The auto download of Docker images for default AMIs can be disabled using the `EC2_DOWNLOAD_DEFAULT_IMAGES=0` configuration variable. ::: +:::note +Amazon Linux 2 reached its [AWS end-of-life](https://aws.amazon.com/amazon-linux-2/faqs/) on June 30, 2026, so LocalStack no longer pre-loads the `Amazon Linux 2` AMI (`ami-07b643b5e45e`) by default. +You can still use it by manually registering it as a Docker-backed AMI: + +```bash +docker pull amazonlinux:2 +docker tag amazonlinux:2 localstack-ec2/amazonlinux-2-ami:ami-07b643b5e45e +``` +::: + All LocalStack-managed Docker AMIs bear the resource tag `ec2_vm_manager:docker`. These can be listed using: