AWS Lambda can't call Cognito Identity - IAM Role

前端 未结 1 1770
一个人的身影
一个人的身影 2021-01-18 23:39

I\'ve got a bit of javascript which runs on my local machine but doesn\'t work from within the Lambda.

It timeouts when calling cognitoidentity.getOpenIdTokenF

相关标签:
1条回答
  • 2021-01-19 00:39

    it must be the policy I have attached

    No, if that were the case you would be getting a permission denied error, not a timeout.

    It looks like your Lambda function has VPC access. You need to configure a NAT gateway for your VPC in order for the Lambda function to have access to anything outside the VPC, including AWS services like Cognito.

    0 讨论(0)
提交回复
热议问题