From dfdc7c26531a4fb90444ba90fdd17488eed232f4 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 26 Sep 2018 01:50:26 -0700 Subject: [PATCH] hack/get-terraform.sh: Add a helper for pulling Terraform This is mostly for CI, so we can give the release repo a stable script to run. And we can bump our Terraform version in the script here without bothering with release pull-requests. --- hack/get-terraform.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hack/get-terraform.sh diff --git a/hack/get-terraform.sh b/hack/get-terraform.sh new file mode 100755 index 00000000000..bbd0244d5ba --- /dev/null +++ b/hack/get-terraform.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +TERRAFORM_VERSION="0.11.8" && +TERRAFORM_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && +cd "$(dirname "$0")/.." && +mkdir -p bin && +curl -L "${TERRAFORM_URL}" | funzip > bin/terraform && +chmod +x bin/terraform