diff --git a/examples/with_availability_zone/README.md b/examples/with_availability_zone/README.md index ad3d5b73..b5497296 100644 --- a/examples/with_availability_zone/README.md +++ b/examples/with_availability_zone/README.md @@ -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}"] @@ -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] } diff --git a/examples/with_availability_zone/main.tf b/examples/with_availability_zone/main.tf index 3c626c6a..a4cdf400 100644 --- a/examples/with_availability_zone/main.tf +++ b/examples/with_availability_zone/main.tf @@ -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}"] @@ -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] } \ No newline at end of file