feat: remove hetzner firewall
This commit is contained in:
parent
f8ba583709
commit
a270f3ad03
1 changed files with 0 additions and 39 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue