Skip to content

Instantly share code, notes, and snippets.

@progrium
Created September 13, 2016 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save progrium/5c479cfdd203dea4e9cb4730fcfe4704 to your computer and use it in GitHub Desktop.
Save progrium/5c479cfdd203dea4e9cb4730fcfe4704 to your computer and use it in GitHub Desktop.
FROM alpine
RUN apk add --update wget unzip ca-certificates
RUN cd /tmp && wget -q https://releases.hashicorp.com/terraform/0.7.2/terraform_0.7.2_linux_amd64.zip \
&& unzip terraform_0.7.2_linux_amd64.zip \
&& mv terraform /bin \
&& rm terraform_0.7.2_linux_amd64.zip
COPY ./tf /bin/tf
ENTRYPOINT ["/bin/tf"]
#!/bin/sh
cat | tar -xpf -
terraform remote config \
-backend=s3 \
-backend-config="bucket=$TF_STATE_bucket" \
-backend-config="key=$TF_STATE_key" \
-backend-config="region=$TF_VAR_aws_region" > /dev/null
terraform $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment