-
[ AWS ] Linux AWS S3 설치AWS Infra 2021. 11. 1. 23:13
1. AWS Cli 설치방법
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
Installing, updating, and uninstalling the AWS CLI version 2 on Linux - AWS Command Line Interface
AWS CLI versions 1 and 2 use the same aws command name. If you have both versions installed, your computer uses the first one found in your search path. If you previously installed AWS CLI version 1, we recommend that you do one of the following to use AWS
docs.aws.amazon.com
[~]$ aws --version
aws-cli/2.3.2 Python/3.8.8 Linux/4.14.248-189.473.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off
IAM 사용자 생성
aws cli 연결
[ ~]$ aws configure
AWS Access Key ID [None]: xxxxx
AWS Secret Access Key [None]: xxxx
Default region name [None]: ap-northeast-2 ← 리전명
Default output format [None]:
1. 조회
[~ ]$ aws s3 ls s3://[버킷명]
PRE mytest2. 업로드
[ ~ ]$ aws s3 cp test.txt s3://[버킷명]/mytest/
upload: ./test.txt to s3://[버킷명]/mytest/test.txt'AWS Infra' 카테고리의 다른 글
[ AWS ] S3 Bucket policy (0) 2021.12.03 [ AWS ] IAM Policy 특정IP에서 접근시에만 권한 허용 (0) 2021.11.30 [ Python ] paramiko를 이용한 pem-key SSH 접속 (자동화 작업) (0) 2021.11.30 [ AWS ] S3 용량과 객체수 모니터링 (s3api와 python) (0) 2021.11.21 AWS Linux UTC 시간 한국시간으로 변경 (0) 2021.11.13 [ AWS CLI ] S3 명령어 (0) 2021.11.04 [ AWS ] IAM Policy 특정 S3만 읽기 / 쓰기 권한 부여 (0) 2021.11.04 [ AWS ] Lambda와 CloudWatch를 이용한 EC2 Start, Stop (0) 2021.10.31