aboutsummaryrefslogtreecommitdiffstats
path: root/main.tf
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-03 11:51:09 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-03 11:51:09 -0700
commita7f735f8d3ff062a35bce5150277ce87157b8e92 (patch)
tree5cd1f8649560133e4a9722bd96c1843ee421580d /main.tf
parentAdd ipv4 and ipv6 IP to resource creation output (diff)
downloadsite-infra-a7f735f8d3ff062a35bce5150277ce87157b8e92.zip
Split into account/ and web/ workspaces
Diffstat (limited to 'main.tf')
-rw-r--r--main.tf40
1 files changed, 0 insertions, 40 deletions
diff --git a/main.tf b/main.tf
deleted file mode 100644
index 058b5be..0000000
--- a/main.tf
+++ /dev/null
@@ -1,40 +0,0 @@
-terraform {
- required_providers {
- hcloud = {
- source = "hetznercloud/hcloud"
- version = "~> 1.68.0"
- }
- }
-}
-
-provider "hcloud" {
- token = var.hcloud_token
-}
-
-variable "hcloud_token" {
- type = string
- sensitive = true
-}
-
-data "hcloud_image" "openbsd" {
- with_selector = "os=openbsd,version=7.9,arch=amd64"
- most_recent = true
-}
-
-resource "hcloud_ssh_key" "default" {
- name = "default-key"
- public_key = file("~/.ssh/id_rsa.pub")
-}
-
-resource "hcloud_server" "web01" {
- name = "web01"
- image = data.hcloud_image.openbsd.id
- server_type = "cx23"
- location = "nbg1"
- ssh_keys = [hcloud_ssh_key.default.id]
-
- public_net {
- ipv4_enabled = true
- ipv6_enabled = true
- }
-}