InvalidAMIID.NotFound ☁️ AWS

InvalidAMIID.NotFound: The image id '[ami-xxxx]' does not exist

The AMI ID isn’t available in this region/account — AMI IDs are regional and private AMIs must be shared.

Seen on: AWS

Meaning

Copy-pasted AMI IDs from tutorials belong to another region, AMIs get deprecated/deregistered, and private AMIs need explicit sharing (plus KMS key sharing when encrypted).

Common causes

  • AMI from another region
  • AMI deregistered/deprecated
  • Private AMI not shared with this account
  • Encrypted AMI whose KMS key isn’t shared

⚡ Quick fix

  1. Look up the current AMI with SSM public parameters
  2. Copy the AMI to this region
  3. Share the AMI (and KMS key) with the account

Detailed fix by platform

AWS CLI

  1. aws ssm get-parameter --name /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64 --region eu-west-1 --query Parameter.Value --output text

How to diagnose

  1. Region — Same as the AMI?
  2. Owner — Shared with your account?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.