Skip to content

blackbird-cloud/terraform-azurerm-virtual-network-gateway

Repository files navigation

Terraform Azurerm Virtual Network Gateway Module

Terraform module to create an Azure Virtual Network Gateway

blackbird-logo

Example

Requirements

Name Version
terraform >= 1.2
azurerm ~> 3
external 2.3.3
tls 4.0.5

Providers

Name Version
azurerm ~> 3
external 2.3.3
tls 4.0.5

Resources

Name Type
azurerm_public_ip.vgw resource
azurerm_virtual_network_gateway.vgw resource
tls_cert_request.client resource
tls_locally_signed_cert.client resource
tls_private_key.client resource
tls_private_key.server resource
tls_self_signed_cert.server resource
external_external.user_thumbprints data source

Inputs

Name Description Type Default Required
location The location/region where the virtual network gateway will be created. string n/a yes
name The name of the virtual network gateway. string n/a yes
public_ip The public IP address configuration for the virtual network gateway.
object({
name = optional(string, null)
allocation_method = optional(string, "Dynamic")
sku = optional(string, "Basic")
tags = optional(map(string), {})
})
n/a yes
resource_group_name The name of the resource group in which to create the virtual network gateway. string n/a yes
sku The SKU of the virtual network gateway. string n/a yes
subnet_id The ID of the subnet in which to create the virtual network gateway. string n/a yes
tags A mapping of tags to assign to the resource. map(string) n/a yes
type The type of the virtual network gateway. string n/a yes
vpn_point_to_site The VPN Point-to-Site configuration for the virtual network gateway.
object({
address_space = list(string)
aad_tenant = optional(string, null)
aad_audience = optional(string, null)
aad_issuer = optional(string, null)
radius_server_address = optional(string, null)
radius_server_secret = optional(string, null)
vpn_client_protocols = optional(list(string), null)
vpn_auth_types = optional(list(string), null)
certificate = optional(object({
name = string
organization = string
validity_period_hours = number
}), null)
clients = optional(list(string), null)
revoked_clients = optional(list(string), null)
})
n/a yes

Outputs

Name Description
public_ip The public IP address configuration for the VPN Gateway
vpn_client_cert The VPN Client Certificate for the VPN Gateway
vpn_client_configuration The VPN Client Configuration for the VPN Gateway
vpn_client_private_key The VPN Client Private Key for the VPN Gateway
vpn_client_thumbprints The thumbprint of the VPN Client Certificate for the VPN Gateway
vpn_gateway_id The ID of the VPN Gateway
vpn_gateway_name The name of the VPN Gateway
vpn_gateway_sku The SKU of the VPN Gateway
vpn_server_cert The VPN Server Certificate for the VPN Gateway

About

We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.

Checkout our other 👉 terraform modules

Copyright

Copyright © 2017-2024 Blackbird Cloud

About

Terraform module to create an Azure Virtual Network Gateway

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published