Skip to content

Commit 971be1f

Browse files
committed
chore: adding variable for hub subscription name
1 parent 6330814 commit 971be1f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

kit/azure/networking/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ No modules.
9898
| <a name="input_firewall_zones"></a> [firewall\_zones](#input\_firewall\_zones) | Collection of availability zones to distribute the Firewall across. | `list(string)` | `null` | no |
9999
| <a name="input_hub_networking_deploy"></a> [hub\_networking\_deploy](#input\_hub\_networking\_deploy) | Service Principal responsible for deploying the central hub networking | `string` | `"cloudfoundation_hub_network_deploy_user"` | no |
100100
| <a name="input_hub_resource_group"></a> [hub\_resource\_group](#input\_hub\_resource\_group) | Name of the central hub resource group | `string` | `"hub-vnet-rg"` | no |
101+
| <a name="input_hub_subscription_name"></a> [hub\_subscription\_name](#input\_hub\_subscription\_name) | Name of your hub subscription | `string` | `"hub"` | no |
101102
| <a name="input_hub_vnet_name"></a> [hub\_vnet\_name](#input\_hub\_vnet\_name) | Name of the central virtual network | `string` | `"hub-vnet"` | no |
102103
| <a name="input_landingzone_scope"></a> [landingzone\_scope](#input\_landingzone\_scope) | Identifier for the management group landinzone | `string` | n/a | yes |
103104
| <a name="input_location"></a> [location](#input\_location) | Region for resource deployment | `string` | n/a | yes |

kit/azure/networking/resources.network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data "azurerm_subscription" "current" {
33

44
resource "azurerm_subscription" "networking" {
55
subscription_id = data.azurerm_subscription.current.subscription_id
6-
subscription_name = "${var.cloudfoundation}-hub"
6+
subscription_name = var.hub_subscription_name
77
}
88

99
resource "azurerm_management_group_subscription_association" "vnet" {

kit/azure/networking/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ variable "landingzone_scope" {
99
description = "Identifier for the management group landinzone"
1010
}
1111

12+
variable "hub_subscription_name" {
13+
type = string
14+
default = "hub"
15+
description = "Name of your hub subscription"
16+
}
17+
1218
variable "cloudfoundation" {
1319
type = string
1420
nullable = false

0 commit comments

Comments
 (0)