aboutsummaryrefslogtreecommitdiffstats
path: root/account/main.tf
diff options
context:
space:
mode:
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")
+}
+