Last active
June 14, 2022 03:55
-
-
Save brxyxn/d75e1309116853168c82c6c91ee6e165 to your computer and use it in GitHub Desktop.
Script to install Terraform in Ubuntu 22.04 | Using gpg instead of apt-key (deprecated)
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
#!/bin/bash | |
# Install Terraform in Ubuntu 22.04 | using gpg instead of apt-key (deprecated) | |
curl https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp.gpg | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt udpate | |
sudo apt install -y terraform |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment