Skip to content

scottatron/terraform-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scottatron/terraform

A simple, opinionated Dockerfile and binstub for running Terraform.

Can optionally decrypt a terrraform.tfvars.json file that has been encrypted using ejson

USAGE

The simplest usage is to run the binstub:

bin/terraform <sub-command>

This volumes mounts your current directory and runs the specified terraform sub-command.

The binstub also checks for a .env file in your current directory and uses to the set the --env-file for the Docker run command

Decrypting an ejson encrypted terraform.vars.json file

If a terraform.vars.ejson file is found, it will be attempted to be decrypted using ejson. In order for this to work the ejson private key must be provided setting the EJSON_PRIVATE_KEY envrionment variable in the .env file

The encrypted terraform.vars.ejson will be decrypted to terraform.vars.json before Terraform runs and deleted when finished.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages