Start an export image task
To export your image, use the export-image command. The exported file is written to the specified S3
bucket using the following S3 key:
prefixexport-ami-id.format
(for example, amzn-s3-demo-export-bucket/exports/export-ami-1234567890abcdef0.vmdk
).
aws ec2 export-image --image-id
ami-id
--disk-image-formatVMDK
--s3-export-location S3Bucket=amzn-s3-demo-export-bucket
,S3Prefix=exports/