arbo
arbo

Reputation: 21

AWS EC2 import snapshot issue

I am trying to create an EC2 instance from an image that I have in an S3 bucket. I have followed one of the AWS documents and I still get this error. The error I am getting is as follows:

"An error occurred (InvalidParameter) when calling the ImportSnapshot operation: The given S3 object is not local to the region"

This happens when I run the following command: "aws ec2 import-snapshot --description "My VMDK" --disk-container file://containers.json"

According to the AWS document this should work. I have double checked both locations and they are the same. I also tried setting up a new bucket in the same location and importing from there but just got the same issue.

Any help is greatly appreciated.

Upvotes: 2

Views: 1865

Answers (1)

Mel
Mel

Reputation: 11

Check your s3 bucket. The instructions are not very clear. A VMware file should already be stored in the bucket. The command is used after the s3 bucket is loaded with the file. Try - aws s3 cp file.ova s3://s3-bucket/ or aws s3 cp file.vmdk s3://s3-bucket/

Upvotes: 1

Related Questions