首页 > 解决方案 > localstack 上的 API 网关

问题描述

我能够设置 localstack(https://github.com/atlassian/localstack)并在其中创建正常的 AG 函数(使用 create-rest-api... 命令)。

aws --endpoint-url=http://localhost:4567/ apigateway create-rest-api --name "MyFirstAPI" 


aws --endpoint-url=http://localhost:4567/ apigateway get-resources --rest-api-id 8A-Z04959201 

但是,我找不到在 localstack 中创建 APIGateway 的方法,以及如何将其重定向到我的项目以调用 API 函数。

我正在寻找没有 Lambda 的解决方案。我有一些文章是使用 Lambda 完成的

标签: aws-api-gatewaylocalstack

解决方案


推荐阅读