Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

fix(module/subnet_set): Added VPC selector to match existing subnets in VPC #292

Merged
merged 2 commits into from
Apr 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/subnet_set/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ locals {
data "aws_subnet" "this" {
for_each = { for k, v in local.input_subnets : k => v if v.create_subnet == false }

tags = { Name = each.value.name }
tags = { Name = each.value.name }
vpc_id = var.vpc_id
}

#### Create Subnets ####
Expand Down