forked from evildotuk/terraform-aws-pritunl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
98 lines (82 loc) · 2.26 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
variable "aws_key_name" {
type = string
description = "SSH keypair name for the VPN instance"
default = ""
}
variable "public_domain_name" {
type = string
description = "Public domain name to lookup for A record"
default = ""
}
variable "private_domain_name" {
type = string
description = "Private domain name to lookup for A record"
default = ""
}
variable "vpc_id" {
type = string
description = "Which VPC VPN server will be created in"
}
variable "public_subnet_id" {
type = string
description = "One of the public subnet id for the VPN instance"
}
variable "instance_type" {
description = "Instance type for VPN Box"
type = string
default = "t3a.small"
}
variable "platform" {
description = "Platform: amd64 or arm64"
type = string
default = "amd64"
validation {
condition = contains(["amd64", "arm64"], var.platform)
error_message = "Valid values for the platform variable are amd64 or arm64"
}
}
variable "ovpn_udp_port" {
type = number
description = "port for pritunl OpenVPN UDP between 10000 and 19999"
default = 13403
}
variable "wireguard_udp_port" {
type = number
description = "port for pritunl OpenVPN UDP between 10000 and 19999"
default = 15403
}
variable "custom_ami_id" {
description = "custom AMI for ARM platform: should be Oracle 8.8"
type = string
default = ""
}
variable "whitelist_ip" {
type = string
description = "Whitelist of IP for initial ssh connection"
default = ""
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(any)
default = {}
}
variable "resource_name_prefix" {
type = string
description = "All the resources will be prefixed with the value of this variable"
default = "vpn"
}
variable "volume_size" {
type = number
description = "ec2 volume size"
default = 30
}
variable "aws_iam_instance_profile" {
type = string
description = "Name of iam_instance_profile to assign to EC2 instance"
default = ""
}
variable "additional_security_group" {
type = list(any)
description = "Additional security (created outside of module) group(s)"
default = []
}