Skip to content

Commit

Permalink
Add the scope to the IP and WAG names
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoutinho-nc committed Aug 19, 2021
1 parent dab6f4a commit 50643df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devops/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ module "paired_regions_ip" {
location = module.paired_regions_rg_network[each.key].rg_obj.location
region_acronym = each.value.region_acronym
location_acronym = each.value.location_acronym
scope = "Network"

for_each = ( var.environment == "TEST" || var.environment == "PROD") ? { region1 = var.paired_regions.region1 } : { }
}
Expand Down Expand Up @@ -212,6 +213,7 @@ module "paired_regions_wag" {
location = module.paired_regions_rg_network[each.key].rg_obj.location
region_acronym = each.value.region_acronym
location_acronym = each.value.location_acronym
scope = "Network"
gateway_subnet_id = module.paired_regions_subnet_wag[each.key].subnet_id
wag_public_ip_id = module.paired_regions_ip[each.key].ip_obj.id
application_hostname = module.paired_regions_notejam[each.key].website_hostname
Expand Down

0 comments on commit 50643df

Please sign in to comment.