Created
November 30, 2021 05:58
-
-
Save heiwa4126/c93c557b16d10dc5da03ef22e121b951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER1=Former21 # ←ここを好きなユーザ名に変えてください | |
aws iam create-user --user-name $USER1 | |
aws iam attach-user-policy --user-name $USER1 --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess | |
aws iam create-access-key --user-name $USER1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AWSのテナントに読み込み専用のAPI用ユーザを作成するときに、ポータルのUIから作ると結構めんどくさいので(特にReadOnlyAccessが一番下でなかなか出てこない)、これをAWS CloudShellから実行すると楽。
最後に以下のようなJSONが表示されるので、
AccessKeyIdとSecretAccessKeyをメモしておく。