1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS CLI を使う

Last updated at Posted at 2020-12-11

AWS CLIをセッティング

Macならこれをダウンロードして、AWS CLIを使えるようにする

名前付きプロファイルを追加する

ここであらかじめ、権限を持ったIAMユーザーの
アクセスキーID、シークレットアクセスキーを控えておき、
以下のコマンドの対話の中で設定する

$ aws configure --profile testUser

AWS Access Key ID [None]: XXXXXXXXXXXXXXXX
AWS Secret Access Key [None]: XXXXXXXXXXXXXXXX
Default region name [None]: ap-northeast-1
Default output format [None]: json

プロファイルを指定して処理を実行

$ aws s3 ls --profile testUser
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?