Created
September 13, 2016 15:44
-
-
Save progrium/5c479cfdd203dea4e9cb4730fcfe4704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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