-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
59 lines (51 loc) · 1.33 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
### input variables
### network
variable "vpc" {
description = "The VPC ID to deploy the cluster"
type = string
}
variable "cidrs" {
description = "The list of CIDR blocks to allow ingress traffic for db access"
type = list(string)
default = ["10.0.0.0/16"]
}
variable "subnets" {
description = "The list of subnet IDs to deploy the cluster"
type = list(string)
}
### cluster
# [CAUTION] Changing the snapshot ID. will force a new resource.
variable "cluster" {
description = "Aurora cluster definition"
default = {
engine = "aurora-mysql"
mode = "provisioned" # Allowed values: global, multimaster, parallelquery, provisioned, serverless.
version = "5.7.12"
port = "3306"
user = "yourid"
database = "yourdb"
apply_immediately = "false"
cluster_parameters = {}
}
}
variable "instances" {
description = "Aurora instances definition"
default = [
{
node_type = "db.t3.medium"
instance_parameters = {}
}
]
}
### description
variable "name" {
description = "The logical name of the module instance"
type = string
default = null
}
### tags
variable "tags" {
description = "The key-value maps for tagging"
type = map(string)
default = {}
}