Skip to content

Commit

Permalink
allign vnets with ARM template
Browse files Browse the repository at this point in the history
  • Loading branch information
Utesgui authored Aug 28, 2024
1 parent 2428e05 commit daf9eb2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module "scepman" {
| <a name="input_law_resource_group"></a> [law\_resource\_group](#input\_law\_resource\_group) | Resource Group of existing Log Analytics Workspace | `string` | `null` | no |
| <a name="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name) | Name of the key vault | `string` | n/a | yes |
| <a name="input_vnet_name"></a> [vnet\_name](#input\_vnet\_name) | Name of VNET created for internal communication | `string` | vnet-scepman | no |
| <a name="input_vnet_address_space"></a> [vnet\_address\_space](#input\_vnet\_address\_space) | Address-Space of the VNET | `list(any)` | ["10.255.255.0/24"] | no |
| <a name="input_vnet_address_space"></a> [vnet\_address\_space](#input\_vnet\_address\_space) | Address-Space of the VNET (needs to be /27 or larger) | `list(any)` | ["10.158.200.0/24"] | no |
| <a name="input_subnet_appservices_name"></a> [subnet\_appservices\_name](#input\_subnet\_appservices\_name) | Name of the subnet created for integrating the App Services | `string` | snet-scepman-appservices | no |
| <a name="input_subnet_endpoints_name"></a> [subnet\_endpoints\_name](#input\_subnet\_endpoints\_name) | Name of the subnet created for the other endpoints | `string` | snet-scepman-endpoints | no |
| <a name="input_location"></a> [location](#input\_location) | Azure Region where the resources should be created | `string` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ variable "vnet_name" {

variable "vnet_address_space" {
type = list(any)
default = ["10.255.255.0/24"]
default = ["10.158.200.0/24"]
description = "Address-Space of the VNET"
}

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ resource "azurerm_subnet" "subnet-endpoints" {
name = var.subnet_endpoints_name
resource_group_name = var.resource_group_name
virtual_network_name = azurerm_virtual_network.vnet-scepman.name
address_prefixes = [cidrsubnet(var.vnet_address_space[0], 1, 1)]
address_prefixes = [cidrsubnet(var.vnet_address_space[0], 3, 1)]
}

resource "azurerm_subnet" "subnet-appservices" {
name = var.subnet_appservices_name
resource_group_name = var.resource_group_name
virtual_network_name = azurerm_virtual_network.vnet-scepman.name
address_prefixes = [cidrsubnet(var.vnet_address_space[0], 1, 0)]
address_prefixes = [cidrsubnet(var.vnet_address_space[0], 3, 0)]
delegation {
name = "delegation"
service_delegation {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ variable "vnet_name" {

variable "vnet_address_space" {
type = list(any)
default = ["10.255.255.0/24"]
default = ["10.158.200.0/24"]
description = "Address-Space of the VNET"
}

Expand Down

0 comments on commit daf9eb2

Please sign in to comment.