-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
85 lines (69 loc) · 2.38 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
variable "region" {
type = string
}
variable "env" {
description = "The name of environment for WireGuard. Used to differentiate multiple deployments."
}
variable "ssh_key_id" {
description = "A SSH public key ID to add to the VPN instance."
}
variable "instance_type" {
default = "t3.nano"
description = "The machine type to launch, some machines may offer higher throughput for higher use cases."
}
variable "vpc_id" {
description = "The VPC ID in which Terraform will launch the resources."
}
variable "subnet_ids" {
type = list(string)
description = "A list of subnets for the Autoscaling Group to use for launching instances. May be a single subnet, but it must be an element in a list."
}
variable "wg_clients" {
type = list(object({ client_friendly_name = string, client_public_key = string, client_allowed_cidr = string }))
description = "List of client objects with IP and public key. See Usage in README for details."
}
variable "wg_server_net" {
default = "10.0.0.1/24"
description = "IP range for vpn server - make sure your Client ips are in this range but not the specific ip i.e. not .1"
}
variable "wg_server_port" {
default = 51820
description = "Port for the vpn server."
}
variable "wg_persistent_keepalive" {
default = 25
description = "Persistent Keepalive - useful for helping connection stability over NATs."
}
variable "use_eip" {
type = bool
default = false
description = "Whether to enable Elastic IP switching code in user-data on wg server startup. If true, eip_id must also be set to the ID of the Elastic IP."
}
variable "target_group_arns" {
type = list(string)
default = null
description = "Running a scaling group behind an LB requires this variable, default null means it won't be included if not set."
}
variable "wg_server_private_key" {
type = string
description = "WG server private key."
}
variable "wg_server_interface" {
default = "eth0"
description = "The default interface to forward network traffic to."
}
variable "use_route53" {
type = bool
default = false
description = "Whether to use Route53"
}
variable "route53_hosted_zone_id" {
type = string
default = null
description = "Route53 Hosted zone ID."
}
variable "route53_record_name" {
type = string
default = null
description = "Route53 Record name."
}