Region in aws.

0

When I upload or delete a record in aws s3 with region us-east-1 it works but when I try to generate a presigned Url the url is generated but I'm getting this error in message tag. "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.". How do I resolve this?

已提問 4 年前檢視次數 1843 次
2 個答案
0

Hi,

This error message is usually received when using the wrong endpoint format or trying to access a bucket which is hosted in a different region than the one specified. Since you are generating a pre-signed URL, an incorrect endpoint format seems less likely. Thus, please check and make sure that the region in which the bucket is hosted and the region that is specified at the time of generating the pre-signed URL are the same.

[] Uploading objects using presigned URLs - https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html

-Vinay K.

AWS
已回答 4 年前
0

Hi,
You were right! It did work when I changed my region but why didn't I get an error message when I uploaded oe deleted the records with the wrong region?

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南