Terraform: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 50: Line 50:
{|
{|
| valign="top" |
| valign="top" |
* [https://medium.com/@biagolini/adding-untracked-resources-to-terraform-state-f056a6ab2adc Terraform » Adding Untracked Resources to TF State]
* [https://www.terraform.io/cli/install/apt Terraform » CLI Packages for Ubuntu]
* [https://www.terraform.io/cli/install/apt Terraform » CLI Packages for Ubuntu]
* [https://github.com/rahulwagh/terraform-jenkins/tree/main Terraform » Jenkins]
* [https://github.com/rahulwagh/terraform-jenkins/tree/main Terraform » Jenkins]
* [[Google Cloud CLI]]
* [[Vagrant]]
* [[Ansible]]
* [[AWS]]
* [[K8s]]
* [[K9s]]


| valign="top" |
| valign="top" |
Line 68: Line 63:
|-
|-
| valign="top" |
| valign="top" |
* [[Google Cloud CLI]]
* [[Vagrant]]
* [[Ansible]]
* [[AWS]]
* [[K8s]]
* [[K9s]]


| valign="top" |
| valign="top" |

Revision as of 15:13, 16 July 2024

# wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg\
# | sudo gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg
#
# sudo echo "deb [arch=$(dpkg --print-architecture)\
#  signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg]\
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list

curl -fsSL https://apt.releases.hashicorp.com/gpg\
| sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg

cat << EOF | sudo tee /etc/apt/sources.list.d/hashicorp.list >/dev/null
deb [arch=$(dpkg --print-architecture)\
 signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg]\
 https://apt.releases.hashicorp.com $(lsb_release -cs) main
EOF

sudo apt update  && sudo apt list  --upgradeable
sudo apt upgrade && sudo apt install terraform
terraform version

Playground

terraform init
terraform plan
terraform apply
terraform destroy

References