Activité : Installer Terraform sur un OS Debian

Ressources

https://hub.docker.com/r/hashicorp/terraform

https://developer.hashicorp.com/terraform/downloads

https://linuxpip.org/lsb_release-command-not-found-fix/

Installation sur uen Debian 11 (Bullseye)

Installer lsb-core pour disposer de lsb_release

# apt install lsb-core

Installation de Terraform

# apt update && apt upgrade # apt install gpg # wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg # echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com bullseye main" | sudo tee /etc/apt/sources.list.d/hashicorp.list # apt update && apt install terraform

Installez, si nécessaire, les wget et unzip : <code shell> # apt install -y wget unzip </code>

Vérifiez l'installation de Terraform

# terraform -v Terraform v1.5.2 on linux_amd64

activer l'autocomplétion des commandes Terraform : <code shell> # terraform -install-autocomplete </code>

Puis se déconnecter et se reconnecter.

Obtenir de l'aide<code shell> # terraform -help # terraform -help plan </code>

Retour au menu Réseau

Terraform