Table des matières

Terraform

Installation

A partir d'un Shell AWS (CloudShell ou en local) :

tfenv

tfenv simplifie l'installation de Terraform, et permet de switcher entre versions.

# Installation
git clone --depth=1 https://github.com/tfutils/tfenv.git ~/.tfenv

# Ajouter au PATH
echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# Installer Terraform 1.14.0
tfenv install 1.14.0
tfenv use 1.14.0

# Vérifier
terraform version