【发布时间】:2021-03-16 18:56:58
【问题描述】:
Coludformation 模板中描述了一个现有的 API。现在我想使用 Swagger 记录 API。有没有办法解析 Cloudformation 模板以创建 swagger.yaml 规范文件?如果可能,我想避免再次编写 API。
注意:我知道您可以使用 Swagger 定义您的 API,然后在您的 Cloudformation 模板中导入 API 配置。这不是我需要的。 Cloudformation 已经存在并且不会更改。因此,我需要相反的东西:基于现有 Cloudformation 模板的 Swagger 配置文件。
【问题讨论】:
标签: swagger amazon-cloudformation aws-api-gateway documentation openapi