[AWS] S3 Error Code: PermanentRedirec

DragonTiger·2022년 12월 20일
0

The bucket you are attempting to access must be addressed using the specified endpoint.
Please send all future requests to this endpoint.
(Service: Amazon S3; Status Code: 301; Error Code: PermanentRedirect; Request ID:)
AWS Error Code: PermanentRedirect

구글링을 해보았더니

AWS S3 Client 를 이용할 경우 생성된 Region 이 일치하지 않을 경우 아래와 같은 에러를 발생 시킨다.
코드상의 리전과 버킷이 위치한 리전이 달라서 생긴 문제라고 한다.
리전을 맞춰주면 정상동작하게된다.

profile
take the bull by the horns

0개의 댓글