Amazon How to describe and cancel export tasks using ec2-api-tools
1)
Export Aws Access and Secret keys
#export AWS_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXX
#export AWS_SECRET_KEY=XXXXXXXXXXXXXXXXXXXXX
2)
Export EC2 Instance i-54a45a0f
#ec2-create-instance-export-task i-54a45a0f -e VMware -f VMDK -c ova -b import-export -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
3)
Optional
Error:
-----
Client.AuthFailure: vm-import-export@amazon.com must have WRITE and READ_ACL permission on the S3 bucket.
Fix:
----
Goto bucket "import-export" --> Properties --> Permissions --> Add More Permissions --> Grantee [vm-import-export@amazon.com], List[ok], Upload/Delete[ok], View Permissions[ok] --> save
4)
Describe Export Task
#ec2-describe-export-tasks -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
5)
Cancel Export Task
#ec2-cancel-export-task export-i-ffm3g49z -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
1)
Export Aws Access and Secret keys
#export AWS_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXX
#export AWS_SECRET_KEY=XXXXXXXXXXXXXXXXXXXXX
2)
Export EC2 Instance i-54a45a0f
#ec2-create-instance-export-task i-54a45a0f -e VMware -f VMDK -c ova -b import-export -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
3)
Optional
Error:
-----
Client.AuthFailure: vm-import-export@amazon.com must have WRITE and READ_ACL permission on the S3 bucket.
Fix:
----
Goto bucket "import-export" --> Properties --> Permissions --> Add More Permissions --> Grantee [vm-import-export@amazon.com], List[ok], Upload/Delete[ok], View Permissions[ok] --> save
4)
Describe Export Task
#ec2-describe-export-tasks -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
5)
Cancel Export Task
#ec2-cancel-export-task export-i-ffm3g49z -O $AWS_ACCESS_KEY -W $AWS_SECRET_KEY --region us-west-1
How to export an EC2 Instance
ReplyDeletehttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExportingEC2Instances.html