Skip to content

appvia/terraform-aws-vpn

Appvia Banner

Terraform Registry Latest Release Slack Community Contributors

Github Actions

Terraform AWS VPN Module

This module creates a VPN using the AWS Client VPN service.

Providers

Name Version
aws ~> 5.0

Inputs

Name Description Type Default Required
authorization_rules Authorization rules for the VPN
list(object({
access_group_id = string
description = string
name = string
target_network_cidr = string
}))
n/a yes
name Name of the VPN string n/a yes
saml_provider_document Document for the SAML provider string n/a yes
saml_provider_portal_document Document for the SAML provider portal string n/a yes
tags Tags to apply to all resources map(string) n/a yes
vpc_id ID of the VPC to use for the VPN string n/a yes
vpn_log_stream_name Name of the CloudWatch log stream for the VPN string n/a yes
vpn_org_name Name of the organization for the VPN string n/a yes
client_cidr CIDR block for the VPN clients string "172.16.0.0/16" no
enable_vpn Whether to enable and deploy the VPN (useful do to dependency of this module) bool false no
public_subnet_ids IDs of the public subnets to use for the VPN list(string) [] no
saml_provider_name Name of the SAML provider string "Client_VPN" no
saml_provider_portal_name Name of the SAML provider portal string "Client_VPN_Portal" no
vpn_log_retention Number of days to retain VPN logs number 7 no

Outputs

Name Description
client_configuration VPN Client Configuration data.
vpn_endpoint_arn The ARN of the Client VPN Endpoint Connection.
vpn_endpoint_dns_name The DNS Name of the Client VPN Endpoint Connection.
vpn_endpoint_id The ID of the Client VPN Endpoint Connection.