PermanentRedirect when calling the PutObject operation

谁说胖子不能爱 提交于 2019-12-06 09:25:38

The errors says:

An error occurred (PermanentRedirect) when calling the PutObject operation: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

This typically occurs when the Amazon S3 bucket you are using is in a different Region to where the Amazon S3 client was created.

For example, the bucket is in us-west-2 but the client was created for ap-southeast-2.

You can specify the region via a credentials file, or by passing a region_name when creating the client object. A default region can also be defined in boto3.setup_default_session().

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!