본문 바로가기

Error/Err_handling

Error [boto3: Provided region_name 'aws_test' doesn't match a supported format.]

오류 배경

boto3.client 사용시 같은 코드에서 필자만 region_name 오류가 나왔음

boto3.client

 

error_messege: Provided region_name 'aws_test' doesn't match a supported format.

 

 

실행 코드
나온 기록들

 

 

해결방법 

~/.aws/config 파일에서 기본 region_name 변경

# 기존
[default]
region=aws_test

# 수정 후
[default]
region=`사용하는 위치` 

eg. us-west-2

 

ref

- https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

https://stackoverflow.com/questions/40377662/boto3-client-noregionerror-you-must-specify-a-region-error-only-sometimes