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

Missing an await in export-users-in-group #52

Open tvkit opened 6 months ago

tvkit commented 6 months ago

lambda terminating prior to completion of ddb batch-write operation

image

https://github.com/aws-solutions/cognito-user-profiles-export-reference-architecture/blob/a923a3317b46de8dc9f4076ce15b667f89390262/source/workflow-export/export-users-in-group.js#L59

The following awaitcan be applied directly within the lambda for deployments that rely on the existing unawaited behavior. The diff was performed on a fork of this repo.

image

mikeols commented 6 months ago

Thank you, @tvkit. The team is looking closer at this issue. It does look like there should be an await there.