Skip to content

Commit 94dc72a

Browse files
committed
fix: cast list to set for for_each directive
1 parent c148630 commit 94dc72a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data "aws_subnets" "this" {
3131
}
3232

3333
data "aws_subnet" "this" {
34-
for_each = data.aws_subnets.this.ids
34+
for_each = toset(data.aws_subnets.this.ids)
3535

3636
id = each.value
3737
}

0 commit comments

Comments
 (0)