44 lines
823 B
Markdown
44 lines
823 B
Markdown
Log into AWS
|
|
|
|
Open Cloud Shell
|
|
|
|
Install Terraform
|
|
|
|
```
|
|
git clone https://github.com/tfutils/tfenv.git ~/.tfenv
|
|
mkdir ~/bin
|
|
ln -s ~/.tfenv/bin/* ~/bin/
|
|
```
|
|
|
|
Find the latest version and install it:
|
|
|
|
```
|
|
tfenv list-remote
|
|
tfenv install 1.8.0
|
|
tfenv use 1.8.0
|
|
```
|
|
|
|
Now test it's all working:
|
|
|
|
```
|
|
terraform --version
|
|
```
|
|
|
|
Install Tofu
|
|
|
|
```
|
|
# Download the installer script:
|
|
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
|
|
# Alternatively: wget --secure-protocol=TLSv1_2 --https-only https://get.opentofu.org/install-opentofu.sh -O install-opentofu.sh
|
|
|
|
# Give it execution permissions:
|
|
chmod +x install-opentofu.sh
|
|
|
|
# Please inspect the downloaded script
|
|
|
|
# Run the installer:
|
|
./install-opentofu.sh --install-method rpm
|
|
|
|
# Remove the installer:
|
|
rm install-opentofu.sh
|
|
```
|