Follow the steps in (this guide)[https://justobjects.nl/terraform-first-steps/]
- Install Open Tofu
- install ansible
- Create a first test main to pull and start nginx docker on localhost
- Open an account on Hetzner provider (or any other provider of cloud)
- Supply an (public) ssh key to a new hetzner cloud project
- Create an API token on the dashboard (Read & Write)
- Create a gandi account for DNS (or cloudflare or namecheap)
- generate a GANDI PAT (personal access token)
- Create terraform.tfvars
hcloud_token = "{value}"
- Create terraform.tfvars
gandi_token = "{value}"
- insert into terraform.tfvars the zone of your domain name
domain
cd devops-gpm/
tofu init
tofu plan # test before run
tofu apply
- Create a VM using main.tf
- Check on the hetzner dashboard if the VM was created correctly