Tips(Reference)/aws

aws cli "You must specify a region. You can also configure your region by running "aws configure" 현상

DEV_BLOG 2022. 5. 25. 21:37

 

 

 

aws ecs create-cluster --cluster-name fargate-cluster

위의 명령어로 aws cli를 활용하여 ecs cluster를 생성하려던 중,

 

You must specify a region. You can also configure your region by running "aws configure".

 

문구가 출력되는 현상이 발생하였습니다.

 

해당 문구는 aws configure 시에 default region name을 입력하지 않아서 생긴 현상입니다.

 

aws configure 명령어를 다시 해주면 해당 현상이 해결됩니다.

 

aws configure

AWS Access Key Id :
AWS Secret Access Key :
Default region name :   [여기에 region을 적어주면 됩니다.]