terraform: data.aws subnets
Jump to navigation
Jump to search
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/subnets
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)
Advertising: