I am trying to export an AMI from AWS. But it gives me a strange error:
Invalid choice: 'export-image', maybe you meant:
- import-image
I have created a centos machine on ec2 and create an ami from that. Seems like the command I am trying is not available but I don't think that's true
aws ec2 export-image --image-id ami-0bbbf5422a9788c0b --disk-image-format VMDK --s3-export-location S3Bucket=my-ami-sohaib,S3Prefix=exports/