To export virtual machines for deployment to on-premises virtualization environments, AWS supports export from AMI through the use of AWS CLI.

aws ec2 export-image command to initiate the process of exporting AMI to the desired format for your virtualization environment.--image-id: AMI ID obtained from the EC2 instance list.--disk-image-format: Virtual machine/virtual disk file format (e.g., vmdk or vhdx)--s3-export-location: Specify the location where the exported file will be stored:aws ec2 export-image command to initiate the process of exporting AMI to the desired format for your virtualization environment.aws ec2 export-image --image-id ami-xxxxxxxx --disk-image-format VMDK --s3-export-location S3Bucket=export-bucket-2026-1a,S3Prefix=exports/
To ensure the execution process does not encounter errors, you need to adjust the configuration parameters. Specifically, replace the ami-xxxxxxxxxxx code with your actual backup ID and ensure the target S3 bucket name is correctly specified as export-bucket-2026-1a.

aws ec2 describe-export-image-tasks command to check export progress:aws ec2 describe-export-image-tasks --export-image-task-ids export-ami-xxxxxxxxx


After downloading the VHD virtual disk file to the on-premises system, you can try deploying the virtual machine using this VHD file on the corresponding virtualization platform.