openvpn-terraform-install
openvpn-terraform-install copied to clipboard
Attach an EIP to EC2 so that we can swap EC2 profiles with no disruption
Before all, thanks for sharing such a nice project! Helped me a lot.
So, here goes something that would make this project a bit more resilient on changes. I just attached an EIP along with the provisioned EC2 instance. In my case, I was basically swapping over instance profiles like t2.micro, t2.nano, t2.medium and measuring bandwidth.
The problem was that for each update, a new IP address has been generated and I had to change de .ovpn accordingly.
Having this elastic IP in front of the instance made my life easier! :)