From 325bb36f0c40eedefc8409e929c4344f7ecab72f Mon Sep 17 00:00:00 2001 From: nellyk <3062772+nellyk@users.noreply.github.com> Date: Mon, 25 Mar 2024 07:53:18 +0000 Subject: [PATCH] fix failing builds --- examples/default/README.md | 1 + examples/default/main.tf | 1 + examples/with_availability_zone/README.md | 16 ++-------------- examples/with_availability_zone/main.tf | 16 ++-------------- examples/without_availability_zone/README.md | 3 +++ examples/without_availability_zone/main.tf | 3 +++ 6 files changed, 12 insertions(+), 28 deletions(-) diff --git a/examples/default/README.md b/examples/default/README.md index 8d30d5f4..dd1cc0ee 100644 --- a/examples/default/README.md +++ b/examples/default/README.md @@ -108,6 +108,7 @@ resource "azurerm_public_ip_prefix" "example" { name = "example-PublicIPprefix" resource_group_name = azurerm_resource_group.this.name prefix_length = 30 + sku = "Standard" } ``` diff --git a/examples/default/main.tf b/examples/default/main.tf index 9669ec4e..a24a1470 100644 --- a/examples/default/main.tf +++ b/examples/default/main.tf @@ -102,4 +102,5 @@ resource "azurerm_public_ip_prefix" "example" { name = "example-PublicIPprefix" resource_group_name = azurerm_resource_group.this.name prefix_length = 30 + sku = "Standard" } \ No newline at end of file diff --git a/examples/with_availability_zone/README.md b/examples/with_availability_zone/README.md index d69f4557..ad3d5b73 100644 --- a/examples/with_availability_zone/README.md +++ b/examples/with_availability_zone/README.md @@ -62,16 +62,6 @@ module "test" { min_count = 2 os_sku = "Ubuntu" mode = "User" - }, - ingress = { - name = "ingress" - vm_size = "Standard_D2d_v5" - orchestrator_version = "1.28" - vnet_subnet_id = module.vnet.vnet_subnets_name_id["subnet3"] - max_count = 4 - min_count = 2 - os_sku = "Ubuntu" - mode = "User" } } } @@ -88,9 +78,6 @@ module "vnet" { subnet2 = { address_prefixes = ["10.31.1.0/24"] } - subnet3 = { - address_prefixes = ["10.31.2.0/24"] - } } virtual_network_address_space = ["10.31.0.0/16"] virtual_network_location = local.location @@ -130,7 +117,8 @@ resource "azurerm_public_ip_prefix" "example" { location = local.location name = "example-PublicIPprefix${each.key}" resource_group_name = azurerm_resource_group.this.name - prefix_length = 31 + prefix_length = 30 + sku = "Standard" zones = [each.key] } ``` diff --git a/examples/with_availability_zone/main.tf b/examples/with_availability_zone/main.tf index ff9acbea..3c626c6a 100644 --- a/examples/with_availability_zone/main.tf +++ b/examples/with_availability_zone/main.tf @@ -56,16 +56,6 @@ module "test" { min_count = 2 os_sku = "Ubuntu" mode = "User" - }, - ingress = { - name = "ingress" - vm_size = "Standard_D2d_v5" - orchestrator_version = "1.28" - vnet_subnet_id = module.vnet.vnet_subnets_name_id["subnet3"] - max_count = 4 - min_count = 2 - os_sku = "Ubuntu" - mode = "User" } } } @@ -82,9 +72,6 @@ module "vnet" { subnet2 = { address_prefixes = ["10.31.1.0/24"] } - subnet3 = { - address_prefixes = ["10.31.2.0/24"] - } } virtual_network_address_space = ["10.31.0.0/16"] virtual_network_location = local.location @@ -124,6 +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 = 31 + prefix_length = 30 + sku = "Standard" zones = [each.key] } \ No newline at end of file diff --git a/examples/without_availability_zone/README.md b/examples/without_availability_zone/README.md index f0da1aa5..6a204a5d 100644 --- a/examples/without_availability_zone/README.md +++ b/examples/without_availability_zone/README.md @@ -107,6 +107,8 @@ module "vnet" { virtual_network_address_space = ["10.31.0.0/16"] virtual_network_location = local.location virtual_network_name = "vnet" + + depends_on = [azurerm_nat_gateway.example] } resource "azurerm_nat_gateway" "example" { @@ -127,6 +129,7 @@ resource "azurerm_public_ip_prefix" "example" { name = "example-PublicIPprefix" resource_group_name = azurerm_resource_group.this.name prefix_length = 30 + sku = "Standard" } ``` diff --git a/examples/without_availability_zone/main.tf b/examples/without_availability_zone/main.tf index 455b852f..f6512a2c 100644 --- a/examples/without_availability_zone/main.tf +++ b/examples/without_availability_zone/main.tf @@ -101,6 +101,8 @@ module "vnet" { virtual_network_address_space = ["10.31.0.0/16"] virtual_network_location = local.location virtual_network_name = "vnet" + + depends_on = [azurerm_nat_gateway.example] } resource "azurerm_nat_gateway" "example" { @@ -121,4 +123,5 @@ resource "azurerm_public_ip_prefix" "example" { name = "example-PublicIPprefix" resource_group_name = azurerm_resource_group.this.name prefix_length = 30 + sku = "Standard" } \ No newline at end of file