Skip to content

Instantly share code, notes, and snippets.

@lgallard
Created June 21, 2017 18:35
Show Gist options
  • Save lgallard/b36e4b9a5e30d1548ebbd6ce8881478f to your computer and use it in GitHub Desktop.
Save lgallard/b36e4b9a5e30d1548ebbd6ce8881478f to your computer and use it in GitHub Desktop.
A script to run Terraform using the hashicorp/terraform image container

tfdocker

A script to run Terraform using the hashicorp/terraform image container

tfdocker AWS_PROFILE WORK_DIR VERSION "COMMAND PARAM"

Examples:

Running terraform 0.9.8 with command and params:

tfdocker default openvpn 0.9.8 "env list"

Running terraform plan on version 0.9.5:

tfdocker client openvpn 0.9.5 plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment