From 78309962bd3a7e7988896aa3ccd645d23d85fca6 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sun, 15 Jan 2023 17:39:58 +0100 Subject: [PATCH] open firewall for database --- main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.tf b/main.tf index 29c85b5..e261436 100644 --- a/main.tf +++ b/main.tf @@ -34,6 +34,15 @@ resource "hcloud_firewall" "default" { ] port = "3000" } + rule { + description = "postgres" + direction = "in" + protocol = "tcp" + source_ips = [ + "0.0.0.0/0" + ] + port = "5432" + } rule { description = "http" direction = "in"