Skip to content

Commit

Permalink
fix failing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nellyk committed Mar 25, 2024
1 parent a94f0d6 commit 325bb36
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 28 deletions.
1 change: 1 addition & 0 deletions examples/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```

Expand Down
1 change: 1 addition & 0 deletions examples/default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
16 changes: 2 additions & 14 deletions examples/with_availability_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand All @@ -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
Expand Down Expand Up @@ -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]
}
```
Expand Down
16 changes: 2 additions & 14 deletions examples/with_availability_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand All @@ -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
Expand Down Expand Up @@ -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]
}
3 changes: 3 additions & 0 deletions examples/without_availability_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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"
}
```

Expand Down
3 changes: 3 additions & 0 deletions examples/without_availability_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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"
}

0 comments on commit 325bb36

Please sign in to comment.