-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
94 lines (75 loc) · 2.09 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
# variables.tf
### network
variable "vpc" {
description = "The vpc id to deploy"
}
variable "subnets" {
description = "The list of subnet ids to deploy"
type = list(string)
}
variable "source_sg" {
description = "The id of source security group to allow incoming traffic to access db"
}
### 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_count" {
description = "The instance count for 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_cluster_parameters" {
description = " A dict of DB parameters to apply. Note that parameters may differ from a family to an other."
default = {}
}
### tags
variable "tags" {
description = "The key-value maps for tagging"
type = map
}
### description
variable "name" {
description = "The logical name"
default = "mysql"
}
variable "detail" {
description = "The extra description"
default = ""
}
variable "stack" {
description = "Text used to identify stack of infrastructure components"
default = "default"
}
### dns
variable "dns_zone" {
description = "The hosted zone name for internal dns, e.g., app.internal"
}
variable "dns_zone_id" {
description = "The hosted zone id for internal dns, e.g., ZFD3TFKDJ1L"
}
variable "apply_immediately" {
description = "pecifies whether any database modifications are applied immediately, or during the next maintenance window"
default = false
}