Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
/ swagger2tf Public archive

🗺 Convert swagger definitions into Terraform's configuration for AWS’s API Gateway

Notifications You must be signed in to change notification settings

zanona/swagger2tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger2TF

Easily convert swagger api definitions into Terraform's configuration for AWS API Gateway.

You can easily utilize the comand line interface to de-reference a swagger file and pipe the output to swagger2tf command, which will generate a JSON Terraform configuration with all the resources set for creation.

jsderef schema.yml | swagger2tf > schema.json.tf; terraform plan

This library will create all resources, methods, responses, integrations and integration responses. Please check the example file (schema.yml) on this repository for more information.

Please note: You will still need to create and attach roles to your lambda functions as well as giving the necessary permissions to API Gateway for executing your lambda functions. However, this can be easily achieved on a separate .tf file.

About

🗺 Convert swagger definitions into Terraform's configuration for AWS’s API Gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published