forked from d7oss/terraform-aws-tailscale-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
99 lines (88 loc) · 2.17 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
99
variable "env_name" {
description = "The environment name to help naming resources."
type = string
}
variable "extra_security_groups" {
description = <<-EOT
A list of extra security groups to associate the server with.
This module already manages a server-specific security group.
EOT
type = list(string)
default = []
}
variable "ingress_cidr_blocks" {
description = "Optional ingress rules for CIDR blocks."
type = map(object({
cidr_blocks = list(string)
protocol = string
port = number
}))
default = {}
}
variable "ingress_security_groups" {
description = "Optional ingress rules for other security groups."
type = map(object({
security_group_id = string
protocol = string
port = number
}))
default = {}
}
variable "key_name" {
description = <<-EOT
Optional EC2 key name to SSH with.
Other keys can be added in `extra_ssh_users`.
EOT
type = string
default = null
}
variable "subnet_ids" {
description = <<-EOT
Subnet IDs to place the server in.
A random one will be picked.
EOT
type = list(string)
}
variable "vpc_id" {
description = "The VPC to place the server in."
type = string
}
variable "tailscale_auth_key" {
description = <<-EOT
The Tailscale authentication key to log the server into the tailnet.
Make sure it's REUSABLE and EPHEMERAL, and pay attention to its expiry.
Get one in https://login.tailscale.com/admin/settings/keys
EOT
type = string
sensitive = true
}
variable "tailscale_advertise_routes" {
description = <<-EOT
The CIDR blocks to route traffic to.
E.g. your VPC or private subnets CIDR blocks.
EOT
type = list(string)
}
variable "hostname" {
description = <<-EOT
A hostname to set in the server.
Likely matching a domain name to add later.
EOT
type = string
}
variable "dns_zone_id" {
description = <<-EOT
The Route53 zone ID to add a record to.
Setting this will enable managing a subdomain for the VPN server.
EOT
type = string
default = null
}
variable "extra_ssh_users" {
description = "A collection of extra SSH users to add in the server."
type = list(object({
name = string
pubkey = string
}))
default = []
}