Skip to content

evildotuk/terraform-aws-pritunl

 
 

Repository files navigation

Input variables

  • aws_key_name: SSH Key pair for VPN instance
  • vpc_id: The VPC id
  • public_subnet_id: One of the public subnets to create the instance
  • instance_type: Instance type of the VPN box (t2.small is mostly enought
  • internal_cidrs: List of CIDRs that will be whitelisted to access the VPN server internally.
  • resource_name_prefix: All the resources will be prefixed with the value of this variable
  • volume_size: instance volume size

Outputs

  • pritunl_private_ip: Private IP address of the instance
  • pritunl_public_ip: EIP of the VPN box

Usage

provider "aws" {
  region  = "eu-west-2"
}

module "pritunl" {
  source = "github.com/evildotuk/terraform-aws-pritunl"

  aws_key_name         = "aws_key_name"
  vpc_id               = "${module.vpc.vpc_id}"
  public_subnet_id     = "${module.vpc.public_subnets[1]}"
  instance_type        = "t2.small"
  resource_name_prefix = "my-pritunl"
}

Please Note that it can take few minutes (ideally 3-5 minutes) for provisioner to complete after terraform completes its process. Once completed, you should see Pritunl app on the public IP of instance

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_eip.pritunl resource
aws_instance.pritunl resource
aws_security_group.pritunl resource
aws_ami.oracle data source
aws_vpc.selected data source

Inputs

Name Description Type Default Required
additional_security_group Additional security (created outside of module) group(s) list [] no
aws_key_name SSH keypair name for the VPN instance any n/a yes
iam_instance_profile iam_instance_profile - must exist before! string null no
instance_type Instance type for VPN Box string "t2.small" no
internal_cidrs [List] IP CIDRs to whitelist in the pritunl's security group list(string) [] no
public_subnet_id One of the public subnet id for the VPN instance string n/a yes
resource_name_prefix All the resources will be prefixed with the value of this variable string "pritunl" no
tags A map of tags to add to all resources map(any) {} no
volume_size ec2 volume size number 20 no
vpc_id Which VPC VPN server will be created in string n/a yes

Outputs

Name Description
arn n/a
aws_ami_id n/a
aws_instance_id n/a
main_security_group_id n/a
pritunl_private_ip n/a
pritunl_public_ip n/a
security_group_ids n/a

About

Terraform module for a quick Pritunl installation on AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 59.6%
  • Shell 40.4%