forked from Young-ook/terraform-aws-spinnaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
150 lines (123 loc) · 3.56 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
144
145
146
147
148
149
150
### network
variable "region" {
description = "The aws region to deploy the service into"
default = "us-east-1"
}
variable "azs" {
description = "A list of availability zones for the vpc"
type = list(string)
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "cidr" {
description = "The vpc CIDR (e.g. 10.0.0.0/16)"
default = "10.0.0.0/16"
}
### kubernetes cluster
variable "kube_version" {
description = "The target version of kubernetes"
default = "1.14"
}
variable "kube_node_type" {
description = "The instance type for kubernetes worker nodes"
default = "m5.large"
}
variable "kube_node_size" {
description = "The instance count for kubernetes worker nodes"
default = "3"
}
variable "kube_node_vol_size" {
description = "The volume size of each kubernetes worker node"
default = "50"
}
variable "kube_node_vol_type" {
description = "The volume type of each kubernetes worker node"
default = "gp2"
}
variable "kube_node_ami" {
description = "The specific ami id what you want to be a source image of kubernetes worker nodes"
default = ""
}
### tags
variable "tags" {
description = "The key-value maps for tagging"
type = map(string)
}
### security
variable "elb_sec_policy" {
description = "Registered security policy"
default = "ELBSecurityPolicy-2016-08"
}
variable "ssl_cert_arn" {
description = "The arn of registered ssl cretificate authority in acm"
default = "your-ca"
}
variable "assume_role_arn" {
description = "The list of arns to allow assume role from spinnaker. e.g.,) arn:aws:iam::12345678987:role/spinnakerManaged"
default = ["arn:aws:iam::12345678987:role/spinnaker-managed-dev"]
}
variable "x509_prop" {
description = "Properties for generating self-signed certificates"
default = {
"country" = "KR"
"state" = "SEL"
"location" = "SEL"
"organization" = "ORG"
"common_name" = "[email protected]"
"groups" = "admin"
}
}
### rdb cluster (aurora-mysql)
variable "mysql_version" {
description = "The target version of mysql cluster"
default = "5.7.12"
}
variable "mysql_port" {
description = "The port number of mysql"
default = "3306"
}
variable "mysql_node_type" {
description = "The instance type for mysql cluster"
default = "db.r4.large"
}
variable "mysql_node_size" {
description = "The instance count of mysql (aurora) cluster"
default = "1"
}
variable "mysql_master_user" {
description = "The name of master user of mysql"
default = "yourid"
}
variable "mysql_db" {
description = "The name of initial database in mysql"
default = "yourdb"
}
# [CAUTION] Changing the snapshot will force a new resource.
variable "mysql_snapshot" {
description = "The name of snapshot to be source of new mysql cluster"
default = ""
}
variable "mysql_apply_immediately" {
description = "specifies whether any database modifications are applied immediately, or during the next maintenance window"
default = false
}
### dns
variable "dns_zone" {
description = "The hosted zone name for internal dns, e.g., app.internal"
}
### description
variable "name" {
description = "The logical name of the module instance"
default = "spin"
}
variable "stack" {
description = "Text used to identify stack of infrastructure components"
default = "default"
}
variable "detail" {
description = "The extra description of module instance"
default = ""
}
variable "slug" {
description = "A random string to be end of tail of module name"
default = ""
}