【发布时间】:2017-08-21 02:16:02
【问题描述】:
我对 aws 有点陌生。我一直在尝试创建一个简单的注册表单客户端。创建了一个 dynamodb 和一个写入该 dynamodb 的 lambda 函数,这里是代码。问题是请求甚至没有通过日志到达 lambda,它说
Execution log for request test-request
Sun Aug 20 14:33:44 UTC 2017 : Starting execution for request: test-invoke-request
Sun Aug 20 14:33:44 UTC 2017 : HTTP Method: POST, Resource Path: /mosesdb
Sun Aug 20 14:33:44 UTC 2017 : Method request path: {}
Sun Aug 20 14:33:44 UTC 2017 : Method request query string: {}
Sun Aug 20 14:33:44 UTC 2017 : Method request headers: {}
Sun Aug 20 14:33:44 UTC 2017 : Method request body before transformations: {
"objectId": "123456789",
"objectFullName": "asdkjh",
"objectPhone": "1234567",
"objectEmail": "@."
}
Sun Aug 20 14:33:44 UTC 2017 : Execution failed due to configuration error: API Gateway does not have permission to assume the provided role
Sun Aug 20 14:33:44 UTC 2017 : Method completed with status: 500
我认为这里的重要部分是
Sun Aug 20 14:33:44 UTC 2017 : Execution failed due to configuration error: API Gateway does not have permission to assume the provided role
我不明白我是否将 API 配置为 授权 无 API 密钥 不需要 那么为什么以及在哪里可以配置角色?我到处寻找,所有关于这方面的信息都与您使用 IAM 身份验证进行身份验证有关,我是否必须在客户端上使用角色?
【问题讨论】:
标签: amazon-web-services aws-lambda aws-api-gateway amazon-iam