๐ [AWS] IAM ์ด์ฉํ์ฌ AWS SDK๋ฅผ ์ด์ฉํ S3 ํ์ผ ์ ๋ก๋ (1 - ์ฌ์ฉ์ ์ถ๊ฐ)
[AWS] IAM ์ด์ฉํ์ฌ AWS SDK๋ฅผ ์ด์ฉํ S3 ํ์ผ ์ ๋ก๋ (1)
๐ฑ [AWS] IAM ์ด์ฉํ์ฌ AWS SDK๋ฅผ ์ด์ฉํ S3 ํ์ผ ์ ๋ก๋ (1) (AWS ํ์๊ฐ์ , ๋ก๊ทธ์ธ ๊ณผ์ ์๋ต) 1. 'IAM' ์๋น์ค ๊ฒ์ํ์ฌ Amazon IAM ์ ์! https://ap-northeast-2.console.aws.amazon.com/console/ho..
dearest-mingyeong.tistory.com
๐ฑ [AWS] IAM ์ด์ฉํ์ฌ AWS SDK๋ฅผ ์ด์ฉํ S3 ํ์ผ ์ ๋ก๋ (2 - AWS SDK ์ค์น ๋ฐ ์ค์ )
1. SDK ๋ค์ด๋ก๋
โ SDK๋ Software Development Kit์ ์ฝ์.
โ ํ๋ก๊ทธ๋๋ฐ์ ๋๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ.
โ AWS SDK๋ฅผ ์ด์ฉํ๋ฉด ๊ฐ๋ฐ๊ณผ ์ฐ๋ํด์ AWS๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ๋จ.
- ์๋์ฐ URL : https://awscli.amazonaws.com/AWSCLIV2.msi
- ๋งฅ URL : https://awscli.amazonaws.com/AWSCLIV2.pkg
2. SDK ์ฌ์ฉํ๊ธฐ
# ์ค์น ํ์ธ
aws --version
# ์ค์
aws configure
โ ์ค์น ํ์ธ, ์ค์ ๋ช ๋ น์ด ์์๋๋ก ์ ๋ ฅ ํ,
๋ณต์ฌํด๋ ์์ธ์ค ํค ID, ์ํฌ๋ฆฟ ์์ธ์ค ํค, ๋ฆฌ์ , ํ์์ ๋ถ์ฌ ๋ฃ์ด ์ค
2. SDK๋ฅผ ์ด์ฉํ S3 ํ์ผ ์ ๋ก๋
๐ ๋ณต์ฌ ๋ช ๋ น์ด ์ค๋ช (cp)
cp — AWS CLI 1.22.101 Command Reference
Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. F
docs.aws.amazon.com
# ์
๋ก๋ ๋ช
๋ น์ด
aws s3 cp {ํ์ผ๋ช
} s3://{๋ฒํท์ด๋ฆ} --acl public-read
์ ๋ก๋ ์๋ฃ !