Skip to content

Commit

Permalink
Pin Terraform version
Browse files Browse the repository at this point in the history
  • Loading branch information
hangxie authored and dcwangmit01 committed Jun 2, 2020
1 parent 9451cfe commit 07867a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function layer_install_apps_not_provided_by_os_packages() {
curl -sSfLo /usr/local/bin/"${ARTIFACT}" https://github.com/"${ORG}"/"${REPO}"/releases/download/v"${VERSION}"/"${ARTIFACT}"-v"${VERSION}".linux && \
chmod a+x /usr/local/bin/"${ARTIFACT}" && \
echo "Install terraform." && \
export ORG="hashicorp" && export REPO="terraform" && export VERSION=$(get_latest_github_release_version "${ORG}" "${REPO}") && export ARTIFACT="${REPO}" && \
export ORG="hashicorp" && export REPO="terraform" && export VERSION=0.12.26 && export ARTIFACT="${REPO}" && \
curl -sSfLo "${ARTIFACT}".zip https://releases."${ORG}".com/"${REPO}"/"${VERSION}"/"${ARTIFACT}"_"${VERSION}"_linux_amd64.zip && \
unzip -qq "${ARTIFACT}".zip && chmod a+x "${ARTIFACT}" && mv "${ARTIFACT}" /usr/local/bin/"${ARTIFACT}"-"${VERSION}" && rm -f "${ARTIFACT}".zip && \
ln -sf /usr/local/bin/"${ARTIFACT}"-"${VERSION}" /usr/local/bin/"${ARTIFACT}" && \
Expand Down

0 comments on commit 07867a6

Please sign in to comment.