1
3
首先要了解如何使用图形用户界面。这里有一些关于你想做什么的文档。如果这是您第一次设置这个,您还需要添加一些额外的权限,包括在这里- https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html 但要快速回答问题,您需要查找的是$:StageVariables.Stage它所做的是链接要触发的lambda的别名。在GUI中,它看起来像这样:
这将允许lambda触发某个别名。一旦输入了这个选项,当在API网关中使用测试功能时,您将能够看到一个新的选项。所以在这里您将指定QA。
所以,为了在云形成中反映这一点,我们需要做一些类似的事情-
有关此的详细信息,请参见: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html 你想看到的是在页面的最底部。 希望这有帮助! |
Ludo · aws apigateway更新集成cli错误 6 年前 |
Joey Kim · API网关自定义授权程序 6 年前 |
hendry · 从AWS API密钥获取使用状态 6 年前 |
tharun · 在孟买为aws api网关端点使用自定义域 6 年前 |
Rahul · AWS cognito与无服务器框架 6 年前 |
Wizzardzz · Swift API网关密钥授权 6 年前 |
Chris Diggs · AWS API网关-具有特定域的CORS 6 年前 |