tf_aws_openvpn
tf_aws_openvpn copied to clipboard
Dynamicly download client.ovpn file
I wanted to ask for a feature request that I haven't been able to figure out. It would be awesome to be able to automatically download the client.ovpn file so that a terraform local execute command could be used to automatically connect to the vpn. This would also be handy for terraform users to be able to provision instances in private subnets via this vpn solution.
This cloud formation template below seems to be able to achieve it from memory when I used it last, but it seems to be building the .ovpn file from scratch to do it. https://github.com/zugdud/openvpn_aws_cloudformation/
Apparently the client.ovpn file in your case would be stored in /root, but I'm not sure how to actually get that file with terraform automatically, since you aren't able to ssh into the openvpn instance as root.