Skip to content

Commit 3aee498

Browse files
committed
fix tf check issue
1 parent a967cd4 commit 3aee498

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ resource "aws_security_group_rule" "new_sg_ingress_with_prefix_list" {
106106
protocol = each.value.protocol
107107
to_port = each.value.to_port
108108
security_group_id = aws_security_group.default[0].id
109-
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list.[*].id : lookup(each.value, "prefix_list_ids", null)
109+
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list[*].id : lookup(each.value, "prefix_list_ids", null)
110110
description = lookup(each.value, "description", null)
111111
}
112112

@@ -158,7 +158,7 @@ resource "aws_security_group_rule" "existing_sg_ingress_with_prefix_list" {
158158
protocol = each.value.protocol
159159
to_port = each.value.to_port
160160
security_group_id = data.aws_security_group.existing[0].id
161-
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list.[*].id : lookup(each.value, "prefix_list_ids", null)
161+
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list[*].id : lookup(each.value, "prefix_list_ids", null)
162162
description = lookup(each.value, "description", null)
163163
}
164164

@@ -210,7 +210,7 @@ resource "aws_security_group_rule" "new_sg_egress_with_prefix_list" {
210210
protocol = each.value.protocol
211211
to_port = each.value.to_port
212212
security_group_id = aws_security_group.default[0].id
213-
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list.[*].id : lookup(each.value, "prefix_list_ids", null)
213+
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list[*].id : lookup(each.value, "prefix_list_ids", null)
214214
description = lookup(each.value, "description", null)
215215
}
216216

@@ -262,6 +262,6 @@ resource "aws_security_group_rule" "existing_sg_egress_with_prefix_list" {
262262
protocol = each.value.protocol
263263
to_port = each.value.to_port
264264
security_group_id = data.aws_security_group.existing[0].id
265-
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list.[*].id : lookup(each.value, "prefix_list_ids", null)
265+
prefix_list_ids = lookup(each.value, "prefix_list_ids", null) == null ? aws_ec2_managed_prefix_list.prefix_list[*].id : lookup(each.value, "prefix_list_ids", null)
266266
description = lookup(each.value, "source_address_prefix", null)
267267
}

0 commit comments

Comments
 (0)