aaron-imbrock / sizza.net-playbooks

0 stars 0 forks source link

create terraform apt repo playbook #5

Open aaron-imbrock opened 4 hours ago

aaron-imbrock commented 4 hours ago

https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli

aaron-imbrock commented 4 hours ago

Install the HashiCorp GPG key.

wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null

Add the official HashiCorp repository to your system.

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

Download the package information from HashiCorp.

sudo apt update

Install Terraform from the new repo

sudo apt install terraform