Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Google Cloud Platform
- devops
- cloud armor
- gcp
- 우테캠
- IAM
- MIG
- CentOS
- cloud function
- 후기
- Clean Code
- interconnect
- kubernetes
- terraform
- github
- docker
- Python
- VAGRANT
- vm
- direnv
- pub/sub
- AWS
- cicd
- Uptime Check
- 보안 규칙
- Terraform Cloud
- cloud
- vpc peering
- 자격증
- Java
Archives
- Today
- Total
EMD Blog
PC에 AWS Account 설정 본문
반응형
로컬 개발 pc에 AWS account 설정
aws key를 AWS_PROFILE 형태로 관리를 하면 한곳에서 AWS key를 관리할 수 있는 이점이 있고 사용시에도 편리하다. direnv 에서도 간단하게 사용할 AWS_PROFILE을 설정할 수 있다. .envrc 를 git에 올라가지 않도록 설정할 수 있기는 하지만 실수하면 올라갈 수 있는 위험이 있는데 AWS_PROFILE 형태로 하면 key가 노출될 위험이 줄어든다.
$ cat ~/.aws/config
[default]
region=ap-northeast-2
output=text
…..
[profile gw-dev]
region=ap-northeast-2
$ cat ~/.aws/credentials
…..
[ldy-dev]
aws_access_key_id = xxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxx
$ cat ldy-dev/.envrc
export AWS_PROFILE=ldy-dev
참고로 aws cli 설치시 명령완성 기능을 사용하면 편리하다. 명령 완성 - AWS Command Line Interface
반응형
'Public Cloud > AWS' 카테고리의 다른 글
Bastion Host를 통한 RDS SQL Server 접속 (0) | 2022.10.22 |
---|---|
AWS Session Manager를 통한 RDP 연결 (0) | 2022.09.07 |
AWS Certified Solutions Architect - Associate (SAA) 후기 (0) | 2021.11.02 |
Blue/Green 배포의 동작방식을 알아보자 (0) | 2021.07.21 |
AWS Naming 모범사례를 알아보자 (0) | 2021.04.22 |