We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57599d6 commit f71c6e4Copy full SHA for f71c6e4
.terraform.lock.hcl
main.tf
@@ -14,7 +14,7 @@ data "aws_vpc" "this" {
14
state = "available"
15
}
16
17
-data "aws_subnet_ids" "this" {
+data "aws_subnets" "this" {
18
dynamic "filter" {
19
for_each = length(data.aws_availability_zones.this.names) > 0 ? range(1) : range(0)
20
@@ -24,11 +24,14 @@ data "aws_subnet_ids" "this" {
24
25
26
27
- vpc_id = data.aws_vpc.this.id
+ filter {
28
+ name = "vpc-id"
29
+ values = [data.aws_vpc.this.id]
30
+ }
31
32
33
data "aws_subnet" "this" {
- for_each = data.aws_subnet_ids.this.ids
34
+ for_each = data.aws_subnets.this.ids
35
36
id = each.value
37
0 commit comments