Closes #209
Create Terraform template for Hetzner Cloud servers with networking and volumes
bun test
)bun run fmt
)/claim #209
# Directory
cd registry/melmathari/templates/hetzner-cloud/
# Initialize
terraform init
# Validate
terraform validate
# Plan (see what will be created)
terraform plan
# Apply - This will create real resources and cost money
terraform apply
# Destroy everything
terraform destroy
# Hetzner Cloud API Token - REPLACE WITH YOUR ACTUAL TOKEN
# Get your token from: https://console.hetzner.cloud/ -> Projects -> Security -> API Tokens
# IMPORTANT: Keep this token secure and never commit it to version control
hcloud_token = "TOKEN_GOES_HERE"
# Optional: Override default parameter values for local testing
# server_type = "cx22"
# server_image = "ubuntu-22.04"
# server_location = "fsn1"
# volume_size = 20
# Optional: SSH key ID if you want SSH access
# ssh_key_id = "YOUR_SSH_KEY"
plan.debug .terraform.lock.zip
Please note in the video the memory size of certain servers was not set properly. I have updated this in the last version.
https://github.com/user-attachments/assets/9857c56c-a593-4bfe-ac11-d2aeaf6cc766
Mohamed Mathari
@nocodeventure
Coder
@coder