일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 스프링부트테스트
- no sources given
- parse
- springbatch error
- log error
- AWS CLI
- springboot
- java 여러개 버전
- el1008e
- maybe not public or not valid?
- OpenFeign
- LeetCode
- easy
- java 버전 변경
- querydsl no sources given
- springboottest
- aws
- Medium
- JUnit
- property or field 'jobparameters' cannot be found on object of type
- No tests found for given includes
- error
- java 1.8 11
- yum install java
- mac os git error
- java
- java 11
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Java 1.8
- java version
- Today
- Total
쩨이엠 개발 블로그
[ AWS CLI] AWS 계정 변경하기 본문
aws cli를 쓰기위해서는 aws 계정에 대한 configure를 써야한다
내 경우는 dev와 prod 두가지의 계정을 바꿔써야했다
$ aws configure list
결과값
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ****************4541 shared-credentials-file
secret_key ****************H3R6 shared-credentials-file
region ap-northeast-2 config-file ~/.aws/config
지금 현재는 profile 이름을 지정하지 않은 default의 경우이다
$ export AWS_DEFAULT_PROFILE=iot-dev
터미널에 입력을 해준 후 다시 한번 list를 조회하면
Name Value Type Location
---- ----- ---- --------
profile iot-dev manual --profile
access_key ****************SBO4 shared-credentials-file
secret_key ****************Oqzp shared-credentials-file
region ap-northeast-2 config-file ~/.aws/config
profile value가 바뀐것을 확인 할 수 있다
매번 설정하기는 귀찮으므로 박아놓기로 한다
$ vi ~/.bash_profile
export AWS_DEFAULT_PROFILE=iot-dev 추가
껐다 켜도 되지만 바로 되기 하기 위해서 입력해준다
$ source ~/.bash_profile
'개발 > AWS' 카테고리의 다른 글
[ AWS ] AWSIotException: TOO_MANY_REQUESTS (0) | 2020.08.05 |
---|---|
[ ec2 ] Java jdk 설치 (0) | 2020.07.21 |
AWSIotDeviceProperty 받아오기 ( java ) (0) | 2020.06.03 |
AWS RDS 한글깨짐 현상 / 인코딩 오류 (0) | 2020.04.26 |
AWS RDS 생성하기 (0) | 2020.04.25 |