initial commit
This commit is contained in:
26
terraform/main.tf
Normal file
26
terraform/main.tf
Normal file
@@ -0,0 +1,26 @@
|
||||
# Upload SSH key to Hetzner
|
||||
resource "hcloud_ssh_key" "hetzner" {
|
||||
name = "Hetzner-Key"
|
||||
public_key = <<EOT
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOqDZVn9hROA7du2xT43CBZe2rAedqH2hFVAV5YDIOYa
|
||||
EOT
|
||||
}
|
||||
|
||||
resource "hcloud_server" "supabase_1" {
|
||||
name = "supabase-1"
|
||||
server_type = "cax21"
|
||||
image = "ubuntu-24.04"
|
||||
location = "nbg1" # Nuremberg
|
||||
ssh_keys = [hcloud_ssh_key.hetzner.name]
|
||||
|
||||
public_net {
|
||||
ipv4_enabled = true
|
||||
ipv6_enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
# # Object Storage bucket (Spaces-compatible)
|
||||
# resource "hcloud_object_storage" "user_files" {
|
||||
# name = "user-files"
|
||||
# location = "nbg1" # Nuremberg
|
||||
# }
|
||||
Reference in New Issue
Block a user