tofu

Log | Files | Refs | README

main.tf (363B)


      1 terraform {
      2   required_providers {
      3     hcloud = {
      4       source  = "hetznercloud/hcloud"
      5       version = "~> 1.50"
      6     }
      7   }
      8 }
      9 
     10 
     11 
     12 provider "hcloud" {
     13   token = var.hcloud_token
     14 }
     15 
     16 
     17 
     18 resource "hcloud_server" "main" {
     19   name        = "learningunix"
     20   server_type = "cx23"
     21   image       = "debian-13"
     22   location    = var.location
     23   ssh_keys    = [var.ssh_key_name]
     24 }