aws-solutions / cognito-user-profiles-export-reference-architecture

A reference architecture for exporting user profiles, group details, and group memberships from an Amazon Cognito User Pool to an Amazon DynamoDB global table using AWS Step Functions and AWS Lambda.
https://aws.amazon.com/solutions/implementations/cognito-user-profiles-export-reference-architecture/
Apache License 2.0
52 stars 19 forks source link

[question] Where second pool id is specified? #26

Closed C-h-e-r-r-y closed 11 months ago

C-h-e-r-r-y commented 1 year ago

I have deployed cloudformation stack from main region. And it deployed stack set in 2 regions main and secondary. 1) Is it enough? 2) I have not found any paramter for second cognito pool? Is it created automatically? Whre can I set it?

kuromi-2022 commented 1 year ago

@C-h-e-r-r-y Hello. I had the same question and I think I figured it out, so thought I'd post it here. Once you have successfully deployed the cloudformation stack, it seems although ImportWorkflow is created it does not run automatically - you can run it yourself in either the Primary or Secondary region from Step Functions > State Machines > ImportWorkflow-XXXX > Start Execution. First, create an empty user pool to be the second Cognito user pool in primary/secondary region, and copy the id. Then when you start the execution of ImportWorkflow in that region, use the following as input: { "NewUserPoolId": "user pool id" } This worked for me! Hope it helps.