cognito-user-profiles-export-reference-architecture icon indicating copy to clipboard operation
cognito-user-profiles-export-reference-architecture copied to clipboard

Missing an await in export-users-in-group

Open tvkit opened this issue 1 year ago • 1 comments

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 await can 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

tvkit avatar Feb 18 '24 03:02 tvkit

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

mikeols avatar Feb 21 '24 17:02 mikeols