Allow port 5432 connections for the lambdas
@@ -58,6 +58,14 @@ resource "aws_security_group" "nat" {
cidr_blocks = [aws_vpc.default.cidr_block]
}
+ ingress {
+ description = "Postgres traffic"
+ from_port = 5432
+ to_port = 5432
+ protocol = "tcp"
+ cidr_blocks = [aws_vpc.default.cidr_block]
+ }
+
egress {
from_port = 80
to_port = 80
@@ -72,6 +80,13 @@ resource "aws_security_group" "nat" {
cidr_blocks = ["0.0.0.0/0"]
}
+ egress {
+ from_port = 5432
+ to_port = 5432
+ protocol = "tcp"
+ cidr_blocks = ["0.0.0.0/0"]
+ }
+
tags = {
Name = "nat instance security group"
}
