This repository was archived by the owner on Nov 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
resources/network/bastion_host Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,12 @@ module "public_ip" {
2323}
2424
2525module "bastion" {
26- source = " ../../resources/network/bastion_host"
27- resource_group = module. resource_group . name
28- region = module. resource_group . location
29- address_prefix_bastion = var. address_prefix_bastion
30- environment = var. environment
31- virtual_network_name = var. virtual_network_name
32- public_ip_address_id = module. public_ip . id
26+ source = " ../../resources/network/bastion_host"
27+ resource_group = module. resource_group . name
28+ region = module. resource_group . location
29+ address_prefix_bastion = var. address_prefix_bastion
30+ environment = var. environment
31+ virtual_network_name = var. virtual_network_name
32+ virtual_network_resource_group = var. virtual_network_resource_group
33+ public_ip_address_id = module. public_ip . id
3334}
Original file line number Diff line number Diff line change 44
55resource "azurerm_subnet" "base" {
66 name = " AzureBastionSubnet"
7- resource_group_name = var. resource_group
7+ resource_group_name = var. virtual_network_resource_group
88 virtual_network_name = var. virtual_network_name
99 address_prefixes = var. address_prefix_bastion
1010}
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ variable "virtual_network_name" {
3434 type = string
3535}
3636
37+ variable "virtual_network_resource_group" {
38+ description = " (Required) The name of the virtual network resource group which to attach the subnet. Changing this forces a new resource to be created."
39+ type = string
40+ }
41+
3742variable "address_prefix_bastion" {
3843 description = " (Required) The address prefixes to use for the bastion subnet."
3944 type = list
You can’t perform that action at this time.
0 commit comments