2

I am trying to export my Amazon EC2 instance to a my S3 bucket as a VMware image.

I have successfully set up Amazon CLI tools, added my credentials and can run commands.

I am using http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExportingEC2Instances.html as documentation but it is not working as expected. For one thing, this documentation states that "ec2-create-instance-export-task" is the init command to export an instance, but it is actually "aws ec2 create-instance-export-task" as I found after some fiddling. Also, the instance id argument appears to be "--instance-id" rather than "instance_id".

I have not had any luck finding up to date documentation as to how I need to enter the other parameters like "target_environment" and "s3_bucket", but I can tell you that doing what is in Amazon's docs isn't working for me.

Has anyone done this recently who can help? Am I missing something?

4

http://docs.aws.amazon.com/cli/latest/reference/ec2/create-instance-export-task.html

Here is the correct documentation for anyone else that has this issue since it took me an hour of digging to find.

| improve this answer | |
  • The doc you provided is referring to the 'aws' command which is found in the AWSCLI, not the same as the ec2-api-tools. Amazon should really provide the difference between the two. – Clocker Jan 30 '15 at 14:22
  • @Clocker you are right - the ec2-api-tools package is practically deprecated and you should stick to the newer AWS CLI. Notice in aws.amazon.com/items/351?externalID=351 that the last update happened in July 2015. – Amos Shapira Dec 21 '16 at 22:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.