diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 15:40:30 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-04 15:40:30 +0200 |
commit | dfd01a67adcb52f984bc3a9755a312cc60fc5a82 (patch) | |
tree | 4da7fef51b7c903cfdc363111b0217c093584643 /digitalocean | |
parent | s3_state -> aws/state (diff) | |
download | infra-terraform-dfd01a67adcb52f984bc3a9755a312cc60fc5a82.tar.gz infra-terraform-dfd01a67adcb52f984bc3a9755a312cc60fc5a82.zip |
digitalocean/firewall: open ports for UDP alsov0.0.4
Diffstat (limited to '')
-rw-r--r-- | digitalocean/firewall/main.tf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/digitalocean/firewall/main.tf b/digitalocean/firewall/main.tf index 937a76a..b0a435a 100644 --- a/digitalocean/firewall/main.tf +++ b/digitalocean/firewall/main.tf @@ -21,6 +21,16 @@ resource "digitalocean_firewall" "this" { } } + 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" |