amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
984 stars 454 forks source link

adminGetUser timeout on Lambda #648

Closed david4City closed 6 years ago

david4City commented 6 years ago

Hi,

I'm using amazon-cognito-identity-js on a Node 6.10 Lambda. When calling adminGetUser, the Lambda function times out.

I tried :

None of those seem to change anything.

Also calling adminCreateUser and adminDeleteUser but haven't tested them yet.

PS: Works well on my workstation.

itrestian commented 6 years ago

Have you checked out the following post:

https://github.com/aws/amazon-cognito-identity-js/issues/247

"Nevermind, I had my Lambda function setup to use a VPC and needed to add a NAT gateway for it."

david4City commented 6 years ago

Ok, that was the fix.

The process :

In aws VPC :

In aws Lambda