-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
103 lines (87 loc) · 2.08 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
variable "namespace" {
type = string
description = "Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp'"
default = null
}
variable "environment" {
type = string
description = "Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT'"
default = null
}
variable "stage" {
type = string
description = "Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release'"
default = null
}
variable "name" {
type = string
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "tags" {
type = map(string)
description = "Additional tags (e.g. `map('BusinessUnit','XYZ')`"
default = {}
}
variable "vpc_cidr_block" {
type = string
description = "vpc cidr block"
default = "10.0.0.0/16"
}
variable "subnet_cidr_block" {
type = string
description = "subnet cidr block"
default = "10.0.0.0/16"
}
variable "public_key" {
type = string
description = "public key"
}
variable "private_key" {
type = string
description = "private key"
}
variable "ssh_user" {
type = string
description = "user ssh"
default = "ubuntu"
}
variable "ssh_port" {
type = number
description = "port ssh"
default = 22
}
variable "ssh_cidr" {
type = string
description = "ssh cidr"
default = "0.0.0.0/0"
}
variable "instance_type" {
type = string
description = "type instance"
default = "t2.micro"
}
variable "admin_user" {
type = string
description = "admin user"
default = "openvpn"
}
variable "storage_path" {
type = string
description = "storage path keys to local"
default = "~/openvpn"
}
variable "is_test" {
type = bool
description = "implement when is execute a test"
default = false
}
variable "rules_ingress" {
type = list(object({
from_port = number
to_port = number
protocol = string
cidr_blocks = list(string)
}))
description = "list rule for security group"
default = []
}