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.
--region us-west-2. If that works then it means that aws cli is configured with the wrong default region (at least in this context). - Mathew Tinsley