Add service-specific web egress rules
This commit is contained in:
@@ -103,6 +103,16 @@ locals {
|
||||
cidr_ipv4 = "0.0.0.0/0"
|
||||
}
|
||||
},
|
||||
{
|
||||
for key, rule in var.web_egress_service_rules :
|
||||
"service_${key}" => {
|
||||
description = rule.description
|
||||
ip_protocol = rule.ip_protocol
|
||||
from_port = rule.port
|
||||
to_port = rule.port
|
||||
cidr_ipv4 = rule.cidr_ipv4
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
ssh_security_group_name = coalesce(var.ssh_security_group.name, "${var.name_prefix}-ssh-enabled")
|
||||
|
||||
Reference in New Issue
Block a user