Skip to content

Instantly share code, notes, and snippets.

@lgallard
lgallard / keybase.md
Created March 22, 2022 13:26
Gist for for keybase as proof

Keybase proof

I hereby claim:

  • I am lgallard on github.
  • I am lgallard (https://keybase.io/lgallard) on keybase.
  • I have a public key ASDhE2ImYMqGcdXJgH838ABvOyuJUii94u-c-UXAeIBEBAo

To claim this, I am signing this object:

@lgallard
lgallard / tfdocker
Created June 22, 2017 13:52
A script to run Terraform using the hashicorp/terraform image container
#/bin/sh
`grep -A 2 "\[$1\]" $HOME/.aws/credentials | tail -n 2 | awk '{ print toupper($1)"="$3 }' | sed '/^AWS_/s/^/export /'`
docker run -it -v $PWD:/data -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY --workdir=/data/$2 hashicorp/terraform:$3 $4
@lgallard
lgallard / tfdocker.md
Created June 21, 2017 18:35
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: