tfplugingen-openapi

Generate Terraform provider code from OpenAPI specifications.

brewmacoslinux
Try with needOr install directly
Source

About

OpenAPI to Terraform Provider Code Generation Specification

Commands

tfplugingen-openapi

Examples

generate terraform provider from openapi spec$ tfplugingen-openapi generate --spec openapi.yaml --output ./provider
convert openapi schema to terraform provider code$ tfplugingen-openapi generate --spec https://api.example.com/openapi.json
validate openapi spec before code generation$ tfplugingen-openapi validate --spec openapi.yaml
customize terraform provider generation with config file$ tfplugingen-openapi generate --spec openapi.yaml --config config.yaml --output ./my-provider
generate terraform provider with custom resource mappings$ tfplugingen-openapi generate --spec openapi.yaml --mappings mappings.json --output ./provider