본문 바로가기
AWS

[s3] S3 V4 인증 오류

by hs_seo 2016. 11. 1.

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.


예전에 만든 EC2서버에서 새로운 지역의 S3 이용중 위와 같은 오류가 발생할 수가 있다. 


이는 기존에는 2버전의 인증을 이용했지만, 2014년 2월 이후 생성된 지역은 4버전의 인증을 이용하기 때문에 발생한다. 


Amazon S3 supports Signature Version 4, a protocol for authenticating inbound API requests to AWS services, in all AWS regions. At this time, AWS regions created before January 30, 2014 will continue to support the previous protocol, Signature Version 2. Any new regions after January 30, 2014 will support only Signature Version 4 and therefore all requests to those regions must be made with Signature Version 4. For more information about AWS Signature Version 2, see Signing and Authenticating REST Requests in the Amazon Simple Storage Service Developer Guide.


이는 아마존이 제공하는 AWS 커맨드나 SDK를 최신버전으로 업데이트 하면 된다. 


다른 경우에는 아마존이 제공하는 방법을 따라 헤더에 인증정보를 입력하면 된다. 



반응형