瀏覽代碼

Fixes Security Group for SMTP to be aggregate system-services group

To be tagged v1.20.8
Fred Damstra 4 年之前
父節點
當前提交
bc6f02b263
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      submodules/security_group/typical_host/main.tf

+ 2 - 2
submodules/security_group/typical_host/main.tf

@@ -148,8 +148,8 @@ resource "aws_security_group_rule" "outbound_to_mailrelay_25" {
   from_port = 25
   to_port = 25
   protocol = "tcp"
-  cidr_blocks = var.cidr_map["smtp"]
-  count = length(var.cidr_map["smtp"]) > 0 ? 1 : 0
+  cidr_blocks = var.cidr_map["vpc-system-services"]
+  count = length(var.cidr_map["vpc-system-services"]) > 0 ? 1 : 0
 }
 
 resource "aws_security_group_rule" "outbound_to_ec2_s3_endpoint" {