Open1

aws sso

青柳康平青柳康平

AWSのIdentity CenterにログインするのをCLIで行う方法。

まず最初にaws cliを最新化する。これが重要。

aws configure sso
my-sso
urlはIdentity Centerから取得する

あとは$HOME/.aws/configに追加していく。

[profile my-account-readonly]
sso_session = my-sso
sso_account_id = 123456789
sso_role_name = ReadOnlyAccess
region = ap-northeast-1