【发布时间】:2018-09-13 08:03:06
【问题描述】:
我正在使用无服务器。我已经创建了我的用户池并使用 AWS APi 网关上的 Cognito 用户池授权器保护了我的 lambda 函数。
现在,在我的 lambda 函数中,我想让我的用户 ID 和其他数据用作 dynamodb 存储的键,如下所示:
module.exports.helloprotected = (event, context, callback) => {
// event.request.userAttributes; -> does not work
};
【问题讨论】:
标签: amazon-web-services aws-lambda aws-api-gateway amazon-cognito