LoginSignup
1
1

More than 5 years have passed since last update.

Cognito UserAttribute属性をターミナルで複数指定する際の書き方

Posted at

初めに

Cognitoでユーザー作成するときなどにUserAttribute属性指定することありますよね、

自分はcliでシェルスクリプト作っていたのですが、UserAttribute属性を複数個指定する書き方を少し悩んだので共有します。

結論

aws cognito-idp admin-create-user 
--user-pool-id ap-northeast-1_hogehoge
--username test 
--message-action SUPPRESS 
--user-attributes Name=email,Value=hoge@gmail.com Name=email_verified,Value=True

みていただきたいのは--user-attributesの箇所です。

この書き方で複数個属性指定することができました。

こちらのコマンドは改行挟んでますのでエラーでます。お気をつけください

終わりに

AWSは無限に新しいサービスが出現するイメージで終わりが見えません

一つ一つキャッチアップしていきます!!!

1
1
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
1
1