瀏覽代碼

Adds outbound SMTPS for Portal

This is needed for portal to send emails. 
To be tagged v1.23.21
Brad Poulton 4 年之前
父節點
當前提交
ff9749f931
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      base/customer_portal/main.tf

+ 9 - 0
base/customer_portal/main.tf

@@ -278,6 +278,15 @@ resource "aws_security_group_rule" "customer_portal_https_outbound" {
   security_group_id = aws_security_group.customer_portal.id
 }
 
+resource "aws_security_group_rule" "customer_portal_smtps_outbound" {
+  type        = "egress"
+  from_port   = 465
+  to_port     = 465
+  protocol    = "tcp"
+  cidr_blocks = ["0.0.0.0/0"]
+  security_group_id = aws_security_group.customer_portal.id
+}
+
 ### Output environment ID for purposes
 #output portal_env_id {
 #  value = "${aws_elastic_beanstalk_environment.mdr-customer-portal-env.id}"