/
aws cli 로 aws 를 명령행에서 관리하기

aws cli 로 aws 를 명령행에서 관리하기

command line 용 관리 툴인 aws client 로 aws 다루기(https://docs.aws.amazon.com/cli/latest/userguide)


설치 & 설정

사전에 python 과 pip 를 설치해야 함.

$ pip install awscli


설치후 다음 명령어로 credencial 설정

$ aws configure 


s3

전체 버킷 목록

aws s3api list-buckets 
aws s3 ls


버킷내 폴더 목록

aws s3 ls s3://my-bucket


동기화

sync 명령어 뒤에 from 과 to 

aws s3 sync from to


s3 에서 현재 폴더로 다운로드

aws s3 sync s3://my-bucket .


현재 폴더를 s3 로 업로드

aws s3 sync . s3://my-bucket

sync 뒤에 --delete 옵션을 추가하면 local에서 삭제한 파일이 remote 에도 반영됨


ec2


 aws ec2 describe-instances


하위 페이지

Related content

WP-CLI - 워드프레스를 명령창에서 관리하는 유틸리티
WP-CLI - 워드프레스를 명령창에서 관리하는 유틸리티
More like this
apache httpd 와 weblogic 연동
apache httpd 와 weblogic 연동
More like this
간단한 커맨드 라인용 web 부하 테스트 프로그램 hey
간단한 커맨드 라인용 web 부하 테스트 프로그램 hey
More like this
Laravel 과 minio 연동
Laravel 과 minio 연동
More like this
AWS EIP(Elastic IP) address limit 늘리기
AWS EIP(Elastic IP) address limit 늘리기
More like this