A quick and simple way to get setup using Torus with Terraform would make it really easy for anyone using Terraform to store/share their secrets inside Torus.
To use Torus today with Terraform or Terragrunt via torus run you have to:
- Prepend all of your variables with
TF_VAR_
- Tie the top level directory to an org and project via
torus link
- Specify the targeted environment inside Torus for each "environment" or leaf module when executing
torus run.
This isn't a lot of work, but it's non-obvious, and could be stream lined. After looking at the options, there are really two pathways forward:
- A better integration through
torus run by making it easier or unnecessary to think about 1 and 3.
- Build a terraform provider which can be included as a third party plugin. This would expose the secrets as a property of secrets as a resource which would be configured via provider configuration. Whether this would require the Torus daemon or not and how Torus would get the credentials to retrieve the secrets is up in the air.
A quick and simple way to get setup using Torus with Terraform would make it really easy for anyone using Terraform to store/share their secrets inside Torus.
To use Torus today with Terraform or Terragrunt via
torus runyou have to:TF_VAR_torus linktorus run.This isn't a lot of work, but it's non-obvious, and could be stream lined. After looking at the options, there are really two pathways forward:
torus runby making it easier or unnecessary to think about 1 and 3.