profile 생성 (CLI에서)

#aws configure --profile [프로필 이름]

생성 후 config 문서를 다음과 같이 수정

 

[default]
region = ap-northeast-2
output = json

[profile iamhonux]
region = ap-northeast-2
output = json
role_arn = arn:aws:iam::650867323418:role/iam-full
source_profile = default

role_arn 은 따로 생성해준 iam 권한을 가지는 role의 arn

 

role이 잘 붙었는지 확인

 

복사했습니다!