Skip to content

Commit

Permalink
feat: Support for configuration of use remote gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Aug 3, 2022
1 parent 762d6d9 commit 9f020f7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ Type: `string`

Default: `""`

### use\_remote\_gateways

Description: Use the remote gateway for the peering

Type: `bool`

Default: `true`

### vnetgwsku

Description: SKU to use for the virtual network gateway
Expand Down
2 changes: 1 addition & 1 deletion connections.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "azurerm_virtual_network_peering" "peeringvpnrev" {
allow_gateway_transit = false
allow_forwarded_traffic = true
allow_virtual_network_access = true
use_remote_gateways = true
use_remote_gateways = var.use_remote_gateways

depends_on = [azurerm_virtual_network_gateway.vnetgw]
}
6 changes: 6 additions & 0 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ variable "ipsec_policy" {
for details
EOL
}

variable "use_remote_gateways" {
type = bool
default = true
description = "Use the remote gateway for the peering"
}

0 comments on commit 9f020f7

Please sign in to comment.