Terraform AWS VPN Gateway
Site to site VPN connections with customer gateways, VPN gateways or transit gateway attachments, tunnels, routing propagation, and encrypted connectivity between on premises networks and AWS.
Controls enforced
These compliance controls are checked at terraform plan time.
- EC2 VPN connections should have logging enabled(low effort)
Quick start
module "vpn-gateway" {
source = "registry.compliance.tf/terraform-aws-modules/vpn-gateway/aws"
version = "1.0"
# ... your arguments here
}See the Get Started guide and Registry Endpoints for details on how to customize the module for your requirements.
Migration from upstream
Already using terraform-aws-modules? Change only the source URL:
module "vpn-gateway" {
source = "terraform-aws-modules/vpn-gateway/aws"
version = "1.0"
}module "vpn-gateway" {
source = "soc2.compliance.tf/terraform-aws-modules/vpn-gateway/aws"
version = "1.0"
}Same arguments. Same outputs. Controls are checked at terraform plan. See the Migration Guide for step-by-step instructions.
Reversibility
No lock-in. Switch back by reverting the source URL:
module "vpn-gateway" {
source = "terraform-aws-modules/vpn-gateway/aws"
}Run terraform init -upgrade. Terraform state is unchanged — same resource addresses, same provider, no compliance.tf-specific resources. Controls you already applied remain in AWS.