Study
AWS(Amazon Web Service, 아마존웹서비스) CLI(Command Line Interface, 씨엘아이) Install(설치) 관련
메디츠
2024. 1. 27. 10:19
반응형
23년 9월 기준.
리눅스 설치
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
aws-cli/2.7.9 Python/3.9.11 Linux/5.13.0-51-generic exe/x86_64.ubuntu.20 prompt/off
rm -f awscliv2.zip # 설치 후, zip 삭제.
which aws
/usr/local/bin/aws
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
// 업데이트
리눅스 /.aws/credentials, ~/.aws/config
윈도우 C:\Users\user\.aws\credentials, C:\Users\user\.aws\config
// credentials에 access_key_id, secret_access_key 저장됨.
aws s3 ls
// 내 버킷 확인
aws s3 ls s3://mybucket/
// 내 버킷 파일 리스트
aws s3 cp localfile s3://[BUCKETNAME]/[FILENAME]
// 파일 복사
aws s3 mb s3://test
// 버킷 생성
반응형