From 3e053a691cdd7f9dcce143a8003d03365b36bfef Mon Sep 17 00:00:00 2001 From: Jo Date: Mon, 22 Apr 2024 12:40:20 -0400 Subject: [PATCH] add smtp outbound --- tofu/modules/services/backend-infra/main.tf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tofu/modules/services/backend-infra/main.tf b/tofu/modules/services/backend-infra/main.tf index 25edf35c5..e32c1d825 100644 --- a/tofu/modules/services/backend-infra/main.tf +++ b/tofu/modules/services/backend-infra/main.tf @@ -239,6 +239,24 @@ resource "aws_vpc_security_group_egress_rule" "allow_tls_to_all" { cidr_ipv4 = "0.0.0.0/0" } +resource "aws_vpc_security_group_egress_rule" "allow_smtp_to_all" { + security_group_id = aws_security_group.backend.id + description = "smtp to internet" + from_port = 587 + to_port = 587 + ip_protocol = "tcp" + cidr_ipv4 = "0.0.0.0/0" +} + +resource "aws_vpc_security_group_egress_rule" "allow_smtp_to_all" { + security_group_id = aws_security_group.backend.id + description = "smtp to internet" + from_port = 587 + to_port = 587 + ip_protocol = "tcp" + cidr_ipv4 = "0.0.0.0/0" +} + resource "aws_vpc_security_group_egress_rule" "allow_smtp_to_all" { security_group_id = aws_security_group.backend.id description = "smtp to internet"