feat: remove hetzner firewall

This commit is contained in:
Tine 2025-03-05 22:46:57 +01:00
parent f8ba583709
commit a270f3ad03
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -4,43 +4,6 @@ resource "hcloud_ssh_key" "main" {
public_key = eeach.value
}
resource "hcloud_firewall" "main" {
name = "main"
# ICMP
rule {
direction = "in"
protocol = "icmp"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
# HTTPS
rule {
direction = "in"
protocol = "tcp"
port = "443"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
# SSH
rule {
direction = "in"
protocol = "tcp"
port = "22"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
}
resource "hcloud_server" "main" {
name = "id.tjo.space"
image = "ubuntu-24.04"
@ -53,8 +16,6 @@ resource "hcloud_server" "main" {
ipv6_enabled = true
}
firewall_ids = [hcloud_firewall.main.id]
backups = true
ssh_keys = [for key in var.ssh_keys : hcloud_ssh_key.main[key].id]