Skip to content

Commit

Permalink
fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
nellyk committed Mar 25, 2024
1 parent 325bb36 commit 896e7f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/with_availability_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ resource "azurerm_nat_gateway" "example" {
}
resource "azurerm_subnet_nat_gateway_association" "example" {
for_each = toset(["1", "2", "3"])
for_each = toset(["1", "2"])
nat_gateway_id = azurerm_nat_gateway.example[each.key].id
subnet_id = module.vnet.vnet_subnets_name_id["subnet${each.key}"]
Expand All @@ -117,7 +117,7 @@ resource "azurerm_public_ip_prefix" "example" {
location = local.location
name = "example-PublicIPprefix${each.key}"
resource_group_name = azurerm_resource_group.this.name
prefix_length = 30
prefix_length = 31
sku = "Standard"
zones = [each.key]
}
Expand Down
4 changes: 2 additions & 2 deletions examples/with_availability_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resource "azurerm_nat_gateway" "example" {
}

resource "azurerm_subnet_nat_gateway_association" "example" {
for_each = toset(["1", "2", "3"])
for_each = toset(["1", "2"])

nat_gateway_id = azurerm_nat_gateway.example[each.key].id
subnet_id = module.vnet.vnet_subnets_name_id["subnet${each.key}"]
Expand All @@ -111,7 +111,7 @@ resource "azurerm_public_ip_prefix" "example" {
location = local.location
name = "example-PublicIPprefix${each.key}"
resource_group_name = azurerm_resource_group.this.name
prefix_length = 30
prefix_length = 31
sku = "Standard"
zones = [each.key]
}

0 comments on commit 896e7f3

Please sign in to comment.