-
Notifications
You must be signed in to change notification settings - Fork 55
/
vwan.tf
27 lines (24 loc) · 967 Bytes
/
vwan.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
resource "azurerm_virtual_wan" "microhack-vwan" {
name = "microhack-vwan"
resource_group_name = azurerm_resource_group.vwan-microhack-hub-rg.name
location = var.location-vwan
}
resource "azurerm_virtual_hub" "microhack-we-hub" {
name = "microhack-we-hub"
resource_group_name = azurerm_resource_group.vwan-microhack-hub-rg.name
location = var.location-vwan-we-hub
virtual_wan_id = azurerm_virtual_wan.microhack-vwan.id
address_prefix = "192.168.0.0/24"
}
resource "azurerm_vpn_gateway" "microhack-we-hub-vng" {
name = "microhack-we-hub-vng"
location = var.location-vwan-we-hub
resource_group_name = azurerm_resource_group.vwan-microhack-hub-rg.name
virtual_hub_id = azurerm_virtual_hub.microhack-we-hub.id
timeouts {
create = "4h"
update = "4h"
read = "10m"
delete = "4h"
}
}