[셋팅] mac os에서 aws-cli로 s3 접근하기

in #kr-dev5 years ago (edited)

aws-s3는 음.. 파일 호스팅을 위한 클라우드 서비스입니다.

예를 들어, 여러 이미지, 동영상, 음원 등을 이 곳에 저장해놓고, 저장해놓은 이미지를 링크하나로 접근할 수 있습니다.

그리고, 이 aws-s3에 파일들을 쉽게 올리고 지우고 하기 위해 존재하는게 aws-cli입니다.

aws-cli를 셋팅하는 것부터 활용하는것 까지 간단하게 적어봤습니다!!

개발 환경을 맥북으로 바꾸면서 이전에 셋팅해놓은걸 다시 할 필요가 있었습니다.

그리고 유저 셋팅하는것도 바꿔봤습니다.

  • 설치
  • cli에서 유저 셋팅
  • IAM, s3에서 권한 셋팅
  • 접근 확인

이런 과정으로 s3에 파일도 올리고 내리고를 할 수 있습니다.

빈약한 설명이지만, 아래 링크들을 하나씩 참고하시면 하실수 있을거라 믿습니다..

셋팅이 끝나면, aws-s3에 업로드, 다운로드를 할 수 있습니다. 이 내용은 아래 링크를 참고하셔요.

AWS S3를 aws-cli로 관리하자

(Unsupported https://passionbull.net/2019/03/others/aws-cli-for-aws-s3/embed/#?secret=jX99V4iaMO)

 

참고한 링크

설치 – https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/install-macos.html

cli 셋팅 – https://docs.aws.amazon.com/ko_kr/cli/latest/userguide/cli-chap-configure.html

권한 부여 – https://github.com/keithweaver/python-aws-s3/

접근 확인 및 실제 사용 – https://passionbull.net/2019/03/others/aws-cli-for-aws-s3/

Sort:  

Thank you for your continued support towards JJM. For each 1000 JJM you are holding, you can get an additional 1% of upvote. 10,000JJM would give you a 11% daily voting from the 700K SP virus707 account.

Congratulations @jacobyu! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 250 posts. Your next target is to reach 300 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

You can upvote this notification to help all Steem users. Learn how here!

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 69633.73
ETH 3805.56
USDT 1.00
SBD 3.74