| |
| eadl:bloc4:terraform [2025/11/20 00:05] – créée jcheron | eadl:bloc4:terraform [2026/04/26 00:44] (Version actuelle) – supprimée jcheron |
|---|
| ====== Terraform ====== | |
| |
| ===== Installation ===== | |
| |
| A partir d'un Shell AWS (CloudShell ou en local) : | |
| |
| |
| ==== tfenv ==== | |
| [[https://github.com/tfutils/tfenv|tfenv]] simplifie l'installation de Terraform, et permet de switcher entre versions. | |
| |
| <sxh bash> | |
| # 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 | |
| </sxh> | |