{"id":20757630,"url":"https://github.com/dodevops/terraform-azure-vpn","last_synced_at":"2026-06-04T17:31:10.666Z","repository":{"id":52240654,"uuid":"372395250","full_name":"dodevops/terraform-azure-vpn","owner":"dodevops","description":"Highly opinionated VPN management in Azure","archived":false,"fork":false,"pushed_at":"2022-08-03T11:51:53.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-18T04:43:50.798Z","etag":null,"topics":["azure-vpn","azurerm","terraform-module"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/dodevops/vpn/azure/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-31T05:44:50.000Z","updated_at":"2022-08-03T10:00:05.000Z","dependencies_parsed_at":"2022-08-26T06:01:22.099Z","dependency_job_id":null,"html_url":"https://github.com/dodevops/terraform-azure-vpn","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fterraform-azure-vpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fterraform-azure-vpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fterraform-azure-vpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fterraform-azure-vpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/terraform-azure-vpn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243067049,"owners_count":20230860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-vpn","azurerm","terraform-module"],"created_at":"2024-11-17T09:43:27.149Z","updated_at":"2026-06-04T17:31:10.662Z","avatar_url":"https://github.com/dodevops.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure VPN management\n\n## Introduction\n\nThis module manages VPN connectivity in Azure.\n\n## Usage\n\nInstantiate the module by calling it from Terraform like this:\n\n```hcl\nmodule \"azure-vpn\" {\n  source  = \"dodevops/vpn/azure\"\n  version = \"\u003cversion\u003e\"\n}\n```\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\nNo requirements.\n\n## Providers\n\nThe following providers are used by this module:\n\n- azurerm\n\n## Modules\n\nNo modules.\n\n## Resources\n\nThe following resources are used by this module:\n\n- [azurerm_local_network_gateway.local](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/local_network_gateway) (resource)\n- [azurerm_public_ip.publicip](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/public_ip) (resource)\n- [azurerm_subnet.gateway](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet) (resource)\n- [azurerm_virtual_network.vpnnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network) (resource)\n- [azurerm_virtual_network_gateway.vnetgw](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network_gateway) (resource)\n- [azurerm_virtual_network_gateway_connection.connection](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network_gateway_connection) (resource)\n- [azurerm_virtual_network_peering.peeringvpn](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network_peering) (resource)\n- [azurerm_virtual_network_peering.peeringvpnrev](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network_peering) (resource)\n\n## Required Inputs\n\nThe following input variables are required:\n\n### gatewaynet\n\nDescription: IP network to use for the gateway\n\nType: `string`\n\n### local\\_gateway\\_ip\n\nDescription: IP of the local (on-prem) vpn gateway\n\nType: `string`\n\n### local\\_nets\n\nDescription: A list of local (on-prem) IP adress ranges to connect\n\nType: `list(string)`\n\n### location\n\nDescription: The azure location used for azure\n\nType: `string`\n\n### project\n\nDescription: Three letter project key\n\nType: `string`\n\n### resource\\_group\n\nDescription: Azure Resource Group to use\n\nType: `string`\n\n### shared\\_key\n\nDescription: The preshared key of the connection\n\nType: `string`\n\n### stage\n\nDescription: Stage for this ressource group\n\nType: `string`\n\n### target\\_vnet\n\nDescription: ID and name of the target vnet to connect the VPN vnet to\n\nType:\n\n```hcl\nobject({\n    id   = string\n    name = string\n  })\n```\n\n## Optional Inputs\n\nThe following input variables are optional (have default values):\n\n### ipsec\\_policy\n\nDescription: IPSec policy to use with the VPN. See the\n[Microsoft documentation](https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-ipsecikepolicy-rm-powershell)  \nfor details\n\nType:\n\n```hcl\nlist(object({\n    dh_group         = string\n    ike_encryption   = string\n    ike_integrity    = string\n    ipsec_encryption = string\n    ipsec_integrity  = string\n    pfs_group        = string\n    sa_lifetime      = number\n  }))\n```\n\nDefault:\n\n```json\n[\n  {\n    \"dh_group\": \"DHGroup2\",\n    \"ike_encryption\": \"AES256\",\n    \"ike_integrity\": \"SHA256\",\n    \"ipsec_encryption\": \"AES256\",\n    \"ipsec_integrity\": \"SHA256\",\n    \"pfs_group\": \"None\",\n    \"sa_lifetime\": 27000\n  }\n]\n```\n\n### suffix\n\nDescription: Additional suffix for this vpn\n\nType: `string`\n\nDefault: `\"\"`\n\n### use\\_remote\\_gateways\n\nDescription: Use the remote gateway for the peering\n\nType: `bool`\n\nDefault: `true`\n\n### vnetgwsku\n\nDescription: SKU to use for the virtual network gateway\n\nType: `string`\n\nDefault: `\"VpnGw1\"`\n\n## Outputs\n\nThe following outputs are exported:\n\n### vpn\\_ip\n\nDescription: n/a\n\u003c!-- END_TF_DOCS --\u003e\n\n## Development\n\nUse [terraform-docs](https://terraform-docs.io/) to generate the API documentation by running\n\n    terraform fmt .\n    terraform-docs .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fterraform-azure-vpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fterraform-azure-vpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fterraform-azure-vpn/lists"}