-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to #2098
Comments
@venu6644 - Thank you for your post. This happens when your configured default region is different than the region specified during client creation. If a request arrives at the wrong Amazon S3 location, Amazon S3 responds with a temporary redirect that tells the requester to resend the request to a new endpoint. If a request is incorrectly formed, Amazon S3 uses permanent redirects to provide direction on how to perform the request correctly. Here is the link which demonstrates how s3 redirect behavior works: I think the same redirect behavior is not working for
It would be very helpful if you can give me the debug log. You can enable the log by adding |
Was able to figure out a way by adding location |
@venu6644 - I am glad you got it working. I am closing the issue as this issue is fixed. |
I have a lambda script which check if default encryption is enabled or not. then it enables it if its not present. But I get the below error. Can someone help.Thanks.
]
}
The text was updated successfully, but these errors were encountered: