terraform-tofu-labs/1-getting-started/README.md

45 lines
823 B
Markdown
Raw Normal View History

2024-04-14 16:03:51 +00:00
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
```