- Install Ansible
apt update && apt upgrade -y apt install ansible - Install Terraform cli
wget -O- https://apt.releases.hashicorp.com/gpg | sudo 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 $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list sudo apt update && sudo apt install terraform - Verify everything works
ansible --version terraform --version
Configurations belong in the root module of a Terraform configuration
-
Hetzner Documentation Links
Hetzner Cloud
Hetzner Provider DocumentationBuild the plugin
snap install go --channel=1.21/stable --classic mkdir -p $GOPATH/src/github.com/hetznercloud; cd $GOPATH/src/github.com/hetznercloud git clone https://github.com/hetznercloud/terraform-provider-hcloud.git cd $GOPATH/src/github.com/hetznercloud/terraform-provider-hcloud make build