내 로컬 컴퓨터로 작업하다 회사 aws s3에 접근할 일이 생김

Reference

https://stackoverflow.com/questions/49716583/how-to-temporarily-switch-profiles-for-aws-cli

 

How to temporarily switch profiles for AWS CLI?

Updated answer (7/10/2021): For AWS CLI v1, do this: export AWS_DEFAULT_PROFILE=user2 For AWS CLI v2, the following will work: export AWS_PROFILE=user2 The full question is below for context: (1.)

stackoverflow.com

 

나는 aws v1을 사용 중이어서 다음 명령어 실행함

export AWS_DEFAULT_PROFILE=company_name

aws s3 ls로 어떤 계정에 로그인되어있는지 확인 가능


aws configure list: 지금 profile 정보 보여줌

credentials란 여러 profile의 인증 정보를 담은 것

configuration는 profile의 구성

+ Recent posts