LoginSignup
0
0

More than 1 year has passed since last update.

AWS CLIでCognitoのFORCE_CHANGE_PASSWORD→CONFIRMEDへ変更

Last updated at Posted at 2021-04-29

調べた記事で試しても上手くいかないが続き、たどり着いた結論をメモ

permanentがミソ

awscli
$ aws cognito-idp admin-set-user-password \
--user-pool-id <user-pool-id> \
--username <username> --password <password> --permanent

トークンのとり方もわかったのでついでで追記

awscli
$ aws cognito-idp admin-initiate-auth \
--user-pool-id <user-pool-id> \
--client-id <client-id> \
--auth-flow ADMIN_NO_SRP_AUTH \
--auth-parameters USERNAME="USERNAME",PASSWORD="PASSWORD"
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