From 4219425b19f719f1bf1ab564c6129dc9ce18482f Mon Sep 17 00:00:00 2001 From: leandrom-humanforce Date: Mon, 17 Jul 2023 10:41:33 +1000 Subject: [PATCH] update --- src/.obsidian/workspace.json | 2 +- src/Cloud/AWS/Cognito.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/.obsidian/workspace.json b/src/.obsidian/workspace.json index 0de0d8cc..0404e54e 100644 --- a/src/.obsidian/workspace.json +++ b/src/.obsidian/workspace.json @@ -241,9 +241,9 @@ }, "active": "418ab84c808d127b", "lastOpenFiles": [ - "Cloud/AWS/Index.md", "Cloud/AWS/Moto.md", "Cloud/AWS/Cognito.md", + "Cloud/AWS/Index.md", "Tools/Docker Desktop.md", "APIs/GitHub API.md", "APIs/Google Calendar API.md", diff --git a/src/Cloud/AWS/Cognito.md b/src/Cloud/AWS/Cognito.md index cc9c08ba..135e10d1 100644 --- a/src/Cloud/AWS/Cognito.md +++ b/src/Cloud/AWS/Cognito.md @@ -6,20 +6,20 @@ Execute `POST http://localhost:52009/moto-api/seed?a=42` to ensure the resulting ``` aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool --pool-name "LocalDev" -aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool-client --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --client-name msnotification --generate-secret +aws --endpoint-url=http://localhost:52009 cognito-idp create-user-pool-client --user-pool-id "ap-southeast-2_2ee240fa04d40b5bbea96b2b752cb0b26dc4366b8" --client-name msnotification --generate-secret -aws --endpoint-url=http://localhost:52009 cognito-idp admin-create-user --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" +aws --endpoint-url=http://localhost:52009 cognito-idp admin-create-user --user-pool-id "ap-southeast-2_2ee240fa04d40b5bbea96b2b752cb0b26dc4366b8" --username "testuser" -aws --endpoint-url=http://localhost:52009 cognito-idp admin-set-user-password --user-pool-id "ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5" --username "testuser" --password "L0c4lD3v" --permanent +aws --endpoint-url=http://localhost:52009 cognito-idp admin-set-user-password --user-pool-id "ap-southeast-2_2ee240fa04d40b5bbea96b2b752cb0b26dc4366b8" --username "testuser" --password "L0c4lD3v!!!" --permanent -aws --endpoint-url=http://localhost:52009 cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=testuser,PASSWORD=L0c4lD3v --client-id 71hfe86y5r215dew1zcyqesh0a --region ap-southeast-2 +aws --endpoint-url=http://localhost:52009 cognito-idp initiate-auth --auth-flow USER_PASSWORD_AUTH --auth-parameters USERNAME=testuser,PASSWORD=L0c4lD3v!!! --client-id 71hfe86y5r215dew1zcyqesh0a --region ap-southeast-2 ``` ### Troubleshoot ``` -aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pools +aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pools --max-results 20 -aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pool-clients --user-pool-id ap-southeast-2_366f47d5c8fd1bbefcf3afec577af68d09ebfa7d5 +aws --endpoint-url=http://localhost:52009 cognito-idp list-user-pool-clients --user-pool-id ap-southeast-2_2ee240fa04d40b5bbea96b2b752cb0b26dc4366b8 ```