diff --git a/custom/custom.tf b/custom/custom.tf index c1c2d7e..b99e90d 100644 --- a/custom/custom.tf +++ b/custom/custom.tf @@ -121,7 +121,7 @@ resource "aws_security_group" "this_security_group" { } } - # inress with prefix lists + # ingress with prefix lists dynamic "ingress" { for_each = length(var.ingress_prefix_list_names) > 0 && length(var.ingress_prefix_list_ports) > 0 ? toset(var.ingress_prefix_list_ports) : toset([]) iterator = p @@ -130,7 +130,7 @@ resource "aws_security_group" "this_security_group" { from_port = p.value.from to_port = p.value.to protocol = p.value.proto - prefix_list_ids = [for pl in data.aws_ec2_managed_prefix_list.inress : pl.id] + prefix_list_ids = [for pl in data.aws_ec2_managed_prefix_list.ingress : pl.id] } }