2
我已经获得了一点javascript,它可以在本地机器上运行,但在Lambda中不起作用。调用cognitoidentity.getOpenIdTokenForDeveloperIdentity
AWS Lambda无法调用Cognito标识 - IAM角色
{
"errorMessage": "2016-03-17T16:50:25.181Z 4fa3fa5a-ec60-11e5-8316-415fa39313da Task timed out after 15.00 seconds"
}
在当地正常工作时(调用到AWS生产服务)
它超时所以它必须是我已经连接到LAMBDA政策。
这里是我的策略:
AmazonCognitoDeveloperAuthenticatedIdentities
AWSLambdaVPCAccessExecutionRole
这是自定义一个我也有:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"mobileanalytics:PutEvents",
"cognito-sync:*"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction"
],
"Resource": [
"arn:aws:lambda:eu-west-1:myaccountid:function:users_login"
]
}
]
}
拉姆达ARN是复制直接从该Lambda屏幕。任何想法缺少什么?
对啊!我会试试 –
你做了什么来修复它的例子? – NeoPix