t2helm
is a simple Python utility that converts a Terraform module to a Helm Chart. The Helm Chart contains a Kubernetes Custom Resource understood and managed by one of the following Kubernetes Operators:
- Isaaguilar Terraform Operator
- Open Application Model Terraform Controller
- Appvia Terraform Controller
tf2helm
reads a Terraform module from a local or remote path and converts it into a Helm chart in a specified directory. It reads the Terraform variables and writes them as .Values.required
and .Values.optional
values in the Helm values.yaml
file depending on whether they have been assigned values or not.
This gives infrastructure operators e.g. DevOps or Platform engineers the flexibility to set sensible default parameters for cloud resources and make them visible and configurable to application developers who may or may not override them afterwards.
pip install tf2helm
tf2helm --help