aws sts get-caller-identity # 엑세스 키에 대한 정보
aws ec2 describe-key-pairs # 키 페어에 대한 정보
위치 - .aws/config
[default]
aws_access_key_id=[AWS 엑세스 키 ID]
aws_secret_access_key=[AWS 엑세스 키 SECRET]
region=ap-northeast-2
output = json
[profile test1]
aws_access_key_id=[AWS 엑세스 키 ID]
aws_secret_access_key=[AWS 엑세스 키 SECRET]
region=eu-west-1
output = json
aws configure get region --profile test1 # 이름이 test1인 profile의 region 출력
$> eu-west-1
aws configure get region # 현재 profile의 region 출력
$> ap-northeast-2
export AWS_PROFILE=test1 # 이름이 test1인 profile로 변경
aws configure get region
$> eu-west-1