![見出し画像](https://assets.st-note.com/production/uploads/images/18736189/rectangle_large_type_2_720ebcf866047bbf952e82e74540ecf4.png?width=1200)
[AWS] AWS CLI アカウント切り替え
■ アカウント設定
「-- profile」 の後に登録したいアカウント名を指定してあげる
$ aws configure --profile next-account
AWS Access Key ID [None]: [Access key ID]
AWS Secret Access Key [None]: [Secret access key]
Default region name [None]: ap-northeast-1
Default output format [None]: json
■ コマンド実行
「-- profile アカウント名」をコマンド実行時に付与する
$ aws s3 ls --profile next-account