I understand you are receiving the error "The latest supported image is the 20.04 with the 5.4 kernel version." While trying to import your Ubuntu Image to AWS.
The Ubuntu image you are trying to import is not supported yet by AWS. Please note, the latest supported image for Ubuntu is the 20.04 with the 5.4 kernel version.
For further details you can consult the following document:
ClientError: Unsupported kernel version 5.15.0-27-genericasked 7 months ago
ExportImageTask: ClientError: Unsupported architecture 183 for <AMI-ID>asked 6 months ago
EC2 Image Builder OVA Import Fail due to Unsupported 5.10 Linux Kernel on Amazon Linux 2 OSasked 8 months ago
Importing Ubuntu 20.04 cloud imagesasked 5 months ago
Is it possible to import a Debian armhf (32 bit ARM) QEMU VM and run it on a t4g.small Graviton instanceasked 5 months ago
aws ec2 import-image failed -> ClientError: We were unable to read your import's initramfs/initrd to determine what drivers your import requires to run in EC2asked 3 months ago
Getting ClientError: DHCP client not installed during VM importasked 2 months ago
Got Unsupported RunInstances error.. but I didn't specify an Availability ZoneAccepted Answerasked 5 months ago
AWS: error while creating AMI from Ubuntu - error initramfs/initrdasked 8 months ago
How to install usbip vhci_hcd drivers on an AWS EC2 Ubuntu Kernel Versionasked 2 years ago