Difference between revisions of "Terraform: data.aws subnets"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
[[subnet_id]] = [[element]](data.aws_subnets.all_private.ids, 0) | [[subnet_id]] = [[element]](data.aws_subnets.all_private.ids, 0) | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[data.aws_subnets.endpoints.ids]]</code> | ||
== See also == | == See also == |
Revision as of 06:37, 3 June 2024
data.aws_subnets
data.
data "aws_subnet" "all_db" { for_each = toset(data.aws_subnets.all_db.ids) id = each.value }
subnet_id = element(data.aws_subnets.all_private.ids, 0)
Related
See also
Advertising: