Replace terraform with opentf (#12291)

Terraform is no longer open source software and has been removed and
replaced with OpenTofu.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
ChengHao Yang
2025-06-10 21:44:25 +08:00
committed by GitHub
parent 739e5e1c6b
commit b981e2f740
4 changed files with 15 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -euxo pipefail
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
chmod +x install-opentofu.sh
./install-opentofu.sh --install-method standalone
rm -f install-opentofu.sh
tofu --version

View File

@@ -1,6 +0,0 @@
#!/bin/bash
set -euxo pipefail
apt-get install -y unzip
curl https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip > /tmp/terraform.zip
unzip /tmp/terraform.zip && mv ./terraform /usr/local/bin/ && terraform --version