diff options
| author | Egor Tensin <egor@tensin.name> | 2026-08-08 16:01:27 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-08-08 16:01:27 +0200 |
| commit | a0e21763dcde280b0deda92d771a86f6c7a097da (patch) | |
| tree | 686158dac74befa5ed33194f79a37254affc507f /digitalocean/firewall/main.tf | |
| parent | move away from reserved IPs for DO (diff) | |
| download | infra-terraform-2.0.0.tar.gz infra-terraform-2.0.0.zip | |
Diffstat (limited to 'digitalocean/firewall/main.tf')
| -rw-r--r-- | digitalocean/firewall/main.tf | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/digitalocean/firewall/main.tf b/digitalocean/firewall/main.tf deleted file mode 100644 index b0a435a..0000000 --- a/digitalocean/firewall/main.tf +++ /dev/null @@ -1,44 +0,0 @@ -resource "digitalocean_firewall" "this" { - name = var.name - droplet_ids = var.droplet_ids - - inbound_rule { - protocol = "icmp" - source_addresses = ["0.0.0.0/0", "::/0"] - } - outbound_rule { - protocol = "icmp" - destination_addresses = ["0.0.0.0/0", "::/0"] - } - - dynamic "inbound_rule" { - for_each = var.open_ports - - content { - protocol = "tcp" - port_range = inbound_rule.value - source_addresses = ["0.0.0.0/0", "::/0"] - } - } - - dynamic "inbound_rule" { - for_each = var.open_ports - - content { - protocol = "udp" - port_range = inbound_rule.value - source_addresses = ["0.0.0.0/0", "::/0"] - } - } - - outbound_rule { - protocol = "tcp" - port_range = "1-65535" - destination_addresses = ["0.0.0.0/0", "::/0"] - } - outbound_rule { - protocol = "udp" - port_range = "1-65535" - destination_addresses = ["0.0.0.0/0", "::/0"] - } -} |
