Manage an OpenVPN instance in your private EC2 cloud using this script.
-
Create and configure an OpenVPN EC2 instance in region us-east-1 .
awsovpn --region us-east-1 up
Then following instructions to configure a Profile and install in your local OpenVPN client.
-
Terminate the OpenVPN EC2 instance and remove all EC2 resources mangaed by this script:
awsovpn down
python -m pip install awsovpn
Configure using any of combination of the following methods:
-
awscli configuration
If you have awscli installed and configured, then awsovpn can utilize this same configuration. Just use
--profile PROFILE
to specify an AWS configuration profile.awsovpn --profile myprofile up
-
environment variables
Create a
.env
file or set the following environment variables:AWS_REGION= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_PROFILE=
-
use arguments
You can also pass credential configuration as arguments:
e.g.
awsovpn --region REGION --access-key-id ACCESS_KEY_ID --secret-access-key SECRET_ACCESS_KEY