openvpn

DeimosCloud/openvpn/google

Terraform Module HCL GOOGLE

A terraform module to setup OpenVPN on GCP

Install
module "openvpn" {
source = "DeimosCloud/openvpn/google"
version = "2.4.0"
}
plain text: /constructs/tfmod-deimoscloud-openvpn-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform OpenVPN GCP A terraform module to setup OpenVPN on GCP. Usage ``hcl module "openvpn" { source = "DeimosCloud/openvpn/google" version = "~>2.1.1" name = var.name region = var.region project_id = var.project_id network = module.vpc.network subnetwork = module.vpc.public_subnetwork output_dir = "${path.module}/openvpn" users = ["bob", "alice"] } `` Contributing Report issues/questions/feature requests on in the issues section. Full contributing guidelines are covered here. Requirements | Name | Version | |------|---------| | terraform | >= 0.14 | Providers | Name | Version | |------|---------| | google | 4.41.0 | | local | 2.2.3 | | null | 3.1.1 | | random | 3.4.3 | | tls | 4.0.3 | Modules No modules. Resources | Name | Type | |------|------| | google_compute_address.default | resou

Inputs (25)
NameTypeDescriptionDefault
zonestringThe GCP Zone to deploy VPN Compute instance to required
install_script_urlstringThe commit sha we are using in order to determine which version of the install f"https://raw.githubusercontent.com/angri
dns_serverslist(string)The DNS servers to be configured[ "8.8.8.8", "8.8.4.4" ]
ssh_source_rangeslist(string)SSH IP ranges allowed to ssh to openvpn server[]
network_project_idstringThe GCP Host Project IDnull
networkstringThe name or self_link of the network to attach this interface to. Use network at"default"
subnetworkstringThe name of the subnetwork to attach this interface to. The subnetwork must exisnull
disk_typestring(Optional) The GCE disk type. Can be either pd-ssd, local-ssd, pd-balanced or pd"pd-standard"
disk_size_gbstring"30"
output_dirstringFolder to store all user openvpn details"openvpn"
remote_userstringThe user to operate as on the VM. SSH Key is generated for this user"ubuntu"
route_only_private_ipsboolRoutes only private IPs through the VPN (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/false
auto_delete_diskboolWhether or not the boot disk should be auto-deletedfalse
service_accountobject({ email = string, Service account to attach to the instance. See https://www.terraform.io/docs/pro{ "email": null, "scopes": [] }
labelsmap(string)Labels, provided as a map{}
userslist(string)list of user to create[]
create_ssh_firewall_ruleboolIndicates whether to create SSH Firewall rulefalse
namestringThe name to use when generating resources""
regionstringThe GCP Project Regionnull
machine_typestringMachine type to create, e.g. n1-standard-1"n1-standard-1"
project_idstringThe GCP Project IDnull
Outputs (2)
users — Created Users
address — The created address
Resources (9)
google_compute_addressgoogle_compute_diskgoogle_compute_firewallgoogle_compute_instance_from_templategoogle_compute_instance_templatelocal_sensitive_filenull_resourcerandom_idtls_private_key
Details
FrameworkTerraform Module
LanguageHCL
Version2.4.0
Cloud GOOGLE
★ Stars13
Forks19
Total downloads23.2k
Inputs25
Outputs2
Resources9
LicenseApache-2.0
NamespaceDeimosCloud
Updated