manifoldco / manifoldco/torus-cli

Terraform Integration

Open
#318 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Go
Stars
603
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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:

  1. Prepend all of your variables with TF_VAR_
  2. Tie the top level directory to an org and project via torus link
  3. 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing torus run and torus link workflows described in the issue, then compare the two proposed Terraform integration paths. Review how Terraform and Terragrunt currently receive TF_VAR_ values and select Torus environments. Done requires an agreed integration approach, documented credential behavior, and a working way to retrieve Torus secrets from Terraform.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, terraform
Domain
devops, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.