Created
October 16, 2023 02:45
-
-
Save adyavanapalli/b5670c9bc5f0b1a15a90f0473c2a1d90 to your computer and use it in GitHub Desktop.
Terraform Installation Convenience Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y gnupg software-properties-common | |
wget -O- https://apt.releases.hashicorp.com/gpg | \ | |
gpg --dearmor | \ | |
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
gpg --no-default-keyring \ | |
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \ | |
--fingerprint | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \ | |
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \ | |
sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt update | |
sudo apt-get install terraform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment