I have set up a daily backup script in my aws china instance which uploads my required files to be backed-up to s3 bucket. I have a restoration script which uses s3api to restore the objects to the instances.
The command used to get the file is aws s3api get-object, but I get the following error once I run the command.
A client error (MethodNotAllowed) occurred when calling the GetObject operation: The specified method is not allowed against this resource.
When I use the same command to restore a file in the AWS US East environment, I can restore the file , but cant do the same in the China environment.
I used a similar command aws s3api list-objects which lists out the objects in my bucket. This is working in the US as well as china environment.
I'm confused as to why I can list my objects but cant use the get operation.
0 Answers