Skip to content

arslanbekov/openvpn-cloud-terraform-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example usage terraform OpenVPN Cloud provider

This is not official documentation or recommendations for use. Please refer to the provider's official documentation on github or in the registry

Configure access

You can use two ways for auth in OpenVPN Cloud.

  1. Use ENV variables:
export OPENVPN_CLOUD_CLIENT_ID=""
export OPENVPN_CLOUD_CLIENT_SECRET=""
  1. Configure in provider.tf file.

Run

terraform init

terraform plan
terraform apply

Important notes

Due to rate limits on OpenVPN Cloud side, we have to limit the number of actions that terraform performs in parallel.

Always use -parallelism=1 with plan and apply commands.

How to import users

terraform import 'openvpncloud_user.this["USERNAME"]' USERNAME