Skip to content

Commit

Permalink
Make both Terraform and OpenTofu work side by side (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
avnes authored Aug 7, 2024
1 parent bec8a05 commit c82093d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RUN export BUILD_ARCHITECTURE=$(uname -m); \
ENV AWS_PAGER=""

# ========================================
# TERRAFORM - legacy and version locked
# TERRAFORM - version locked
# ========================================

ENV TERRAFORM_VERSION=1.5.7
Expand All @@ -70,7 +70,8 @@ RUN export BUILD_ARCHITECTURE=$(uname -m); \
&& shasum -a 256 -c terraform_${TERRAFORM_VERSION}_SHA256SUM \
&& unzip terraform_${TERRAFORM_VERSION}_linux_${BUILD_ARCHITECTURE_ARCH}.zip \
&& rm -f terraform_${TERRAFORM_VERSION}_* /tmp/files/hashicorp.asc \
&& mv terraform /usr/local/bin/terraform-legacy
&& mv terraform /usr/local/bin/terraform \
&& /usr/local/bin/terraform -install-autocomplete

# ========================================
# OpenTofu https://github.com/opentofu/opentofu/releases
Expand Down
1 change: 0 additions & 1 deletion src/temporary/scripts/install-tofu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ if [[ "${CHECKSUM}" = "${EXPECTED_CHECKSUM}" ]]; then
mv tofu /usr/local/bin
chmod +x /usr/local/bin/tofu
tofu -install-autocomplete
ln -s /usr/local/bin/tofu /usr/local/bin/terraform
else
exit 1
fi

0 comments on commit c82093d

Please sign in to comment.