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

情報がある場所

$ cat /Users/<UserName>/.aws/credentials
[master]
aws_access_key_id = aa
aws_secret_access_key = aa
[terraform]
aws_access_key_id = bb
aws_secret_access_key = bb
$ cat /Users/<UserName>/.aws/config
[profile aaa-sso]
sso_session = aws_cli
sso_account_id = aaa
sso_role_name = AWSAdministratorAccess
region = ap-northeast-1

[sso-session aws_cli]
sso_start_url = https://d-aaa.awsapps.com/start
sso_region = ap-northeast-1
sso_registration_scopes = sso:account:access

[profile aaa]
source_profile = master
mfa_serial = arn:aws:iam::aaa:mfa/mfa_aaa
role_arn = arn:aws:iam::aaa:role/aaa
region = ap-northeast-1
[profile terraform]
region = ap-northeast-1
output = json

新規でクレデンシャル情報を増やす場合

  1. IAMユーザー作成する
  2. アクセスキーを作成する
  3. CLIで登録する
    $ aws configure --profile <新しく作成する名前>
    AWS Access Key ID [None]: ccc
    AWS Secret Access Key [None]: ccc
    Default region name [None]: ap-northeast-1
    Default output format [None]: json
    
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?