vpn

avinor/vpn/azurerm

Terraform Module HCL AZURERM

Create an Azure Virtual Network Gateway and configure it for S2S and optionally P2S connectivity

Install
module "vpn" {
source = "avinor/vpn/azurerm"
version = "2.0.0"
}
plain text: /constructs/tfmod-avinor-vpn-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure VPN Deployes a virtual network gateway in Azure as Vpn, does not support Expressroute setup. Since the vpn has to be deployed in same resource group as the virtual network it will not create any resource groups (and also not try to delete resource group if destroying vpn module). Vpn can be configured in active-active mode with optional point-to-site configuration activated. Usage Deploying a vpn without any local connections is possible, but for a more complete example see examples/local_networks. Example uses tau and a key vault data source to retrieve the shared_key. ``terraform data "azurerm_key_vault_secret" "shared_key" { name = "vpn_shared_key" key_vault_id = "KEYVAULT_ID" } module { source = "avinor/vpn/azurerm" version = "1.1.0" } inputs { name = "vpn" resource_group_name =

Inputs (11)
NameTypeDescriptionDefault
resource_group_namestringName of resource group to deploy resources in. required
client_configurationobject({ address_space = strinIf set it will activate point-to-site configuration. required
log_analytics_workspace_idstringSpecifies the ID of a Log Analytics Workspace where Diagnostics Data should be s required
namestringName of virtual gateway. required
locationstringThe Azure Region in which to create resource. required
subnet_idstringId of subnet where gateway should be deployed, have to be names GatewaySubnet. required
skustringConfiguration of the size and capacity of the virtual network gateway. required
tagsmap(string)Tags to apply to all resources created.{}
enable_bgpboolIf true, BGP (Border Gateway Protocol) will be enabled for this Virtual Network false
active_activeboolIf true, an active-active Virtual Network Gateway will be created. An active-actfalse
local_networkslist(object({ name = string, gList of local virtual network connections to connect to gateway.[]
Outputs (2)
gateway_id — The ID of the virtual network gateway.
fqdns — List of the fqdn for gateway. Will return 2 for active_active mode and 1 otherwise
Resources (6)
azurerm_local_network_gatewayazurerm_monitor_diagnostic_settingazurerm_public_ipazurerm_virtual_network_gatewayazurerm_virtual_network_gateway_connectionrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AZURERM
★ Stars7
Forks11
Total downloads6.2k
Inputs11
Outputs2
Resources6
Examples3
LicenseApache-2.0
Namespaceavinor
Updated