-
Notifications
You must be signed in to change notification settings - Fork 16
/
variables.tf
143 lines (120 loc) · 3.46 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#
# Variables for the OpenVPN terraform module.
#
# Copyright 2016-2022, Frederico Martins
# Author: Frederico Martins <http://github.com/fscm>
#
# SPDX-License-Identifier: MIT
#
# This program is free software. You can use it and/or modify it under the
# terms of the MIT License.
#
variable "ami_id" {
description = "The id of the AMI to use for the instance."
type = string
}
variable "associate_public_ip_address" {
description = "Associate a public IP address to the OpenVPN instance."
default = true
type = string
}
variable "domain" {
description = "The domain name to use for the OpenVPN instance."
type = string
}
variable "environment" {
description = "The environment name for the OpenVPN resource(s)."
default = ""
type = string
}
variable "extra_security_group_id" {
description = "Extra security group to assign to the OpenVPN instance (e.g.: 'sg-3f983f98')."
default = ""
type = string
}
variable "instance_type" {
description = "The type of instance to use for the OpenVPN instance."
default = "t2.small"
type = string
}
variable "keyname" {
description = "The SSH key name to use for the OpenVPN instance."
type = string
}
variable "name" {
description = "The main name for the OpenVPN resource(s)."
default = "openvpn"
type = string
}
variable "namespace" {
description = "The namespace for the OpenVPN resource(s)."
default = ""
type = string
}
variable "private_zone_id" {
description = "The ID of the hosted zone for the private DNS record(s)."
default = ""
type = string
}
variable "public_zone_id" {
description = "The ID of the hosted zone for the public DNS record(s)."
default = ""
type = string
}
variable "root_volume_iops" {
description = "The amount of provisioned IOPS (for 'io1' type only)."
default = 0
type = string
}
variable "root_volume_size" {
description = "The volume size in gigabytes."
default = "8"
type = string
}
variable "root_volume_type" {
description = "The volume type. Must be one of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD)."
default = "gp2"
type = string
}
variable "stage" {
description = "The stage attribute for the OpenVPN resource(s)."
default = ""
type = string
}
variable "ssh_port" {
description = "The SSH port, as defined in the original AMI from packer."
default = "222"
type = string
}
variable "subnet_ids" {
description = "List of Subnet IDs to launch the instance in (e.g.: ['subnet-0zfg04s2','subnet-6jm2z54q'])."
type = list(string)
}
variable "tags" {
description = "Map of tags (e.g.: '{name=test,environment=dev}')."
default = {}
type = map(string)
}
variable "ttl" {
description = "The TTL (in seconds) for the DNS record(s)."
default = "600"
type = string
}
variable "vpc_id" {
description = "The VPC ID for the security group(s)."
type = string
}
variable "vpn_allowed_cidrs" {
description = "List of the subnets to which the VPN clients will be allowed access to (in CIDR notation)."
type = list(string)
}
variable "vpn_cidr" {
description = "The subnet for the VPN clients (in CIDR notation)."
default = "172.16.61.0/24"
type = string
}
variable "vpn_dns" {
description = "List of DNS Server addresses."
default = []
type = list(string)
}