Tool that runs Terraform then Helmfile. That's it! Pretty crazy.
You can inspect the whole script here. Download it and copy to PATH:
curl -LO https://github.com/raw/jdolitsky/terraform-then-helmfile/master/bin/terraform-then-helmfile.sh
chmod +x terraform-then-helmfile.sh
mv terraform-then-helmfile.sh /usr/local/bin/terraform-then-helmfile
The only requirements is that it must be run in a directory containing both a terraform/
and a helmfile/
directory, both containing appropriate files for each tool. Example:
$ tree
.
├── helmfile
│ └── helmfile.yaml
└── terraform
├── main.tf
├── outputs.tf
└── variables.tf
Please see this example.
To use, simply run terraform-then-helmfile up
(make sure to save the resulting terraform.tfstate
file somewhere).
To destroy everything, run terraform-then-helmfile down
.