aboutsummaryrefslogtreecommitdiffstats
path: root/account/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 /account/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 'account/main.tf')
-rw-r--r--account/main.tf23
1 files changed, 23 insertions, 0 deletions
diff --git a/account/main.tf b/account/main.tf
new file mode 100644
index 0000000..1966aed
--- /dev/null
+++ b/account/main.tf
@@ -0,0 +1,23 @@
+terraform {
+ required_providers {
+ hcloud = {
+ source = "hetznercloud/hcloud"
+ version = "~> 1.68.0"
+ }
+ }
+}
+
+provider "hcloud" {
+ token = var.hcloud_token
+}
+
+variable "hcloud_token" {
+ type = string
+ sensitive = true
+}
+
+resource "hcloud_ssh_key" "default" {
+ name = "default-key"
+ public_key = file("~/.ssh/id_rsa.pub")
+}
+