If you use Ubuntu Linux on Amazon Web Services, this will find the correct image. It returns the latest official AMI ID based on:
- Ubuntu release (xenial, bionic, focal, etc.)
- CPU type (amd64, arm64)
- AWS region (us-west-2, eu-central-1, etc.)
The result goes on the clipboard so you can paste it into AWS.
Ubuntu updates images frequently, even for older releases, to incorporate security updates. The AMI that you use should be looked up fresh each time.
The information comes from the list on this page: https://cloud-images.ubuntu.com/locator/ec2/