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