Skip to content

Commit

Permalink
separate TF_VERSION and TF_REQUIRED_VERSION, so we can use hashicorp/…
Browse files Browse the repository at this point in the history
…terraform:light image.
  • Loading branch information
xuwang committed Jul 19, 2017
1 parent 6923039 commit e49233a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion route53/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TF_VAR_timestamp := $(shell date +%Y-%m-%d-%H%M)
# Terraform dir referenced in container
TF_VAR_build_dir := /build

TF_VERSION := 0.9.3
TF_VERSION := light
TF_IMAGE := hashicorp/terraform:${TF_VERSION}
TF_CMD := docker run -it --rm --env-file=${BUILD_DIR}/tf.env \
-v=${HOME}/.aws:/root/.aws \
Expand Down
6 changes: 3 additions & 3 deletions route53/scripts/gen-provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ TF_REMOTE_STATE_BUCKET=${TF_REMOTE_STATE_BUCKET%%\"}
TF_REMOTE_STATE_BUCKET=${TF_REMOTE_STATE_BUCKET##\"}
TF_REMOTE_STATE_PATH=${TF_REMOTE_STATE_PATH%%\"}
TF_REMOTE_STATE_PATH=${TF_REMOTE_STATE_PATH##\"}
TF_VERSION=${TF_VERSION%%\"}
TF_VERSION=${TF_VERSION##\"}
TF_REQUIRED_VERSION=${TF_REQUIRED_VERSION%%\"}
TF_REQUIRED_VERSION=${TF_REQUIRED_VERSION##\"}
TF_REMOTE_STATE_REGION=${TF_REMOTE_STATE_REGION%%\"}
TF_REMOTE_STATE_REGION=${TF_REMOTE_STATE_REGION##\"}
AWS_PROFILE=${AWS_PROFILE%%\"}
Expand All @@ -25,7 +25,7 @@ ALLOW_SSH_CIDR="$(curl -s http://ipinfo.io/ip)/32"
cat <<EOF
# Generated by scripts/gen-provider.sh
terraform {
required_version = "${TF_VERSION}"
required_version = "${TF_REQUIRED_VERSION}"
backend "s3" {
bucket = "${TF_REMOTE_STATE_BUCKET}"
key = "${TF_REMOTE_STATE_PATH}"
Expand Down

0 comments on commit e49233a

Please sign in to comment.