serkanbingol / terraform-aws-client-vpn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Client VPN Terraform example

An working example how to configure an AWS Client VPN with terraform.

Important: The included certificates shouldn't be used beside doing a proof of concept or playing around with terraform!

Basic usage

  1. Setup AWS Credentials for your CLI (look at the documentation for more details)
  2. Change the domain name in the vpn.tf where you are having access to (this is needed for the DNS verification)
  3. perform terraform init
  4. perform terraform apply
  5. download the profile from aws
  6. fix the certificate section within the profile (remove the third certificate and add the certificates from ca-chain.crt and client-vpn-ca.crt)
  7. connect with your vpn client (e.g. openvpn) openvpn --config downloaded-client-config.ovpn --pkcs12 certs/client.p12

About


Languages

Language:HCL 100.0%