Open greenpau opened 2 years ago
The sequence of commands in AWS Shell:
export TARGET_EMAIL="greenpau@outlook.com" export TARGET_POOL="us-east-1_Kwldk8dj" export TARGET_USER="greenpau" export TARGET_USER_NAME="Paul Greenberg" export TARGET_USER_SECRET="My@Password" export TARGET_USER_ROLES="authp/admin|authp/user" export TARGET_TIMEZONE="America/NewYork" aws cognito-idp admin-create-user \ --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --region us-east-1 aws cognito-idp admin-set-user-password \ --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} --password "${TARGET_USER_SECRET}" \ --permanent --region us-east-1 aws cognito-idp admin-update-user-attributes --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --user-attributes Name="email",Value="${TARGET_EMAIL}" \ --region us-east-1 aws cognito-idp admin-update-user-attributes --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --user-attributes Name="custom:roles",Value="${TARGET_USER_ROLES}" \ --region us-east-1 aws cognito-idp admin-update-user-attributes --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --user-attributes Name="name",Value="${TARGET_USER_NAME}" \ --region us-east-1 aws cognito-idp admin-update-user-attributes --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --user-attributes Name="email_verified",Value=true \ --region us-east-1 aws cognito-idp admin-update-user-attributes --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --user-attributes Name="zoneinfo",Value="${TARGET_TIMEZONE}" \ --region us-east-1 aws cognito-idp admin-get-user --user-pool-id ${TARGET_POOL} --username ${TARGET_USER} \ --region us-east-1
Add reference to OpenID endpoint: https://cognito-idp.[region].amazonaws.com/[userPoolId]/.well-known/openid-configuration
https://cognito-idp.[region].amazonaws.com/[userPoolId]/.well-known/openid-configuration
The sequence of commands in AWS Shell: