0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

aws アカウントメモ

Posted at

awsアカウントについて

1 PCに登録されているリストの確認

$ aws configure list-profiles
xxx-xxxx
default
xxxx.xxxx.xxx
xxx-xxx-xxx

2 詳細内容確認(アクセスキーちらみせ)

$ aws configure list --profile xxx-xxx-xxx
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile           xxx-xxx-xxx           manual    --profile
access_key     ****************xxx shared-credentials-file
secret_key     ****************xxx shared-credentials-file
    region           ap-northeast-1      config-file    ~/.aws/config

3 プロファイルがどこのアカウントだったか

(このプロファイルどのアカウントのものだっけ?というとき)

aws sts get-caller-identity --profile xxx
{
    "UserId": "",
    "Account": "",
    "Arn": "arn:aws:iam::xxxxx:user/x.xxx"
}
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?