-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
155 lines (128 loc) · 4.13 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
151
152
153
154
155
variable "namespace" {
type = "string"
description = "Namespace (e.g. `eg` or `cp`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "name" {
type = "string"
description = "Name of the application"
}
variable "zone_id" {
type = "string"
default = ""
description = "Route53 parent zone ID. If provided (not empty), the module will create sub-domain DNS record for the cluster endpoint"
}
variable "security_groups" {
type = "list"
default = []
description = "List of security groups to be allowed to connect to the DB instances"
}
variable "vpc_id" {
type = "string"
description = "VPC ID to create the cluster in (e.g. `vpc-a22222ee`)"
}
variable "subnets" {
type = "list"
description = "List of VPC subnet IDs"
}
variable "instance_type" {
type = "string"
default = "db.t2.small"
description = "Instance type to use"
}
variable "cluster_size" {
type = "string"
default = "2"
description = "Number of DB instances to create in the cluster"
}
variable "db_subnet_group_name" {
type = "string"
description = "A DB subnet group to associate with this DB instance. NOTE: This must match the db_subnet_group_name of the attached aws_rds_cluster."
default = ""
}
variable "db_port" {
type = "string"
default = "3306"
description = "Database port"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `name`, `namespace`, `stage` and `attributes`"
}
variable "attributes" {
type = "list"
default = ["replicas"]
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "instance_parameters" {
type = "list"
default = []
description = "List of DB instance parameters to apply"
}
variable "allowed_cidr_blocks" {
type = "list"
default = []
description = "List of CIDR blocks allowed to access"
}
variable "security_group_ids" {
type = "list"
default = []
description = "The IDs of the security groups from which to allow `ingress` traffic to the DB instances"
}
variable "enabled" {
description = "Set to false to prevent the module from creating any resources"
default = "true"
}
variable "engine" {
type = "string"
default = "aurora"
description = "The name of the database engine to be used for this DB cluster. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`"
}
variable "cluster_family" {
type = "string"
default = "aurora5.6"
description = "The family of the DB cluster parameter group"
}
variable "publicly_accessible" {
description = "Set to true if you want your cluster to be publicly accessible (such as via QuickSight)"
default = "false"
}
variable "storage_encrypted" {
description = "Specifies whether the DB cluster is encrypted. The default is `false` for `provisioned` `engine_mode` and `true` for `serverless` `engine_mode`"
default = "true"
}
variable "apply_immediately" {
description = "Specifies whether any cluster modifications are applied immediately, or during the next maintenance window"
default = "true"
}
variable "promotion_tier" {
description = "Failover Priority setting on instance level. The reader who has lower tier has higher priority to get promoted to writer (values can range from 0-15)."
default = "15"
}
variable "rds_monitoring_interval" {
description = "Interval in seconds that metrics are collected, 0 to disable (values can only be 0, 1, 5, 10, 15, 30, 60)"
default = "0"
}
variable "rds_monitoring_role_arn" {
type = "string"
default = ""
description = "The ARN for the IAM role that can send monitoring metrics to CloudWatch Logs"
}
variable "cluster_identifier" {
type = "string"
description = "The cluster identifier"
}
variable "custom_endpoint_type" {
type = "string"
description = " The type of the endpoint. One of: READER, ANY"
default = "READER"
}