Amazon API lambda 到 rds 的网关?

Amazon API Gateway to lambda to rds?

我正在尝试让移动应用程序访问 amazon rds postgres 实例。引用 , Mark said "You should look into pointing API Gateway at a Lambda function that has the ability to connect to your RDS database and run queries." So my question is could I implement this approach using this link: http://docs.aws.amazon.com/lambda/latest/dg/vpc-rds.html 然后使用 api 网关指向那个 lambda 函数?那么任何具有来自 cognito 的凭据的移动客户端都可以调用那个 api?我是否正确,这是最好的方法吗?我担心的是,由于涉及VPC,只有少数人能够使用lambda函数。

是的,您可以使用 link 中列出的技术(这正是我在您引用的其他答案中所指的),然后通过 API 网关公开该 Lambda 函数。这是实现此目的的(其中一种)正确方法。

My worries is that since a VPC is involved, only a small number of people will be able to use the lambda function.

我不明白你在说什么。为什么使用 VPC 会限制可以使用 Lambda 函数的人数?