forked from terraform-community-modules/tf_aws_rds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
135 lines (110 loc) · 3.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
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
#
# Module: tf_aws_rds
#
# RDS Instance Variables
variable "rds_instance_identifier" {
description = "Custom name of the instance"
}
variable "rds_is_multi_az" {
description = "Set to true on production"
default = false
}
variable "rds_storage_type" {
description = "One of 'standard' (magnetic), 'gp2' (general purpose SSD), or 'io1' (provisioned IOPS SSD)."
default = "standard"
}
variable "rds_allocated_storage" {
description = "The allocated storage in GBs"
# You just give it the number, e.g. 10
}
variable "rds_engine_type" {
description = "Database engine type"
# Valid types are
# - mysql
# - postgres
# - oracle-*
# - sqlserver-*
# See http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
# --engine
}
variable "rds_engine_version" {
description = "Database engine version, depends on engine type"
# For valid engine versions, see:
# See http://docs.aws.amazon.com/cli/latest/reference/rds/create-db-instance.html
# --engine-version
}
variable "rds_instance_class" {
description = "Class of RDS instance"
# Valid values
# https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
}
variable "auto_minor_version_upgrade" {
description = "Allow automated minor version upgrade"
default = true
}
variable "allow_major_version_upgrade" {
description = "Allow major version upgrade"
default = false
}
variable "database_name" {
description = "The name of the database to create"
}
# Self-explainatory variables
variable "database_user" {}
variable "database_password" {}
variable "database_port" {}
# This is for a custom parameter to be passed to the DB
# We're "cloning" default ones, but we need to specify which should be copied
variable "db_parameter_group" {
description = "Parameter group, depends on DB engine used"
# default = "mysql5.6"
# default = "postgres9.5"
}
variable "publicly_accessible" {
description = "Determines if database can be publicly available (NOT recommended)"
default = false
}
# RDS Subnet Group Variables
variable "subnets" {
description = "List of subnets DB should be available at. It might be one subnet."
type = "list"
}
variable "private_cidr" {
description = "VPC private addressing, used for a security group"
#type = "string"
default = []
}
variable "src_security_group" {
description = "Ingress security group name used for a security group"
type = "string"
default = ""
}
variable "rds_vpc_id" {
description = "VPC to connect to, used for a security group"
type = "string"
}
variable "skip_final_snapshot" {
description = "If true (default), no snapshot will be made before deleting DB"
default = true
}
variable "copy_tags_to_snapshot" {
description = "Copy tags from DB to a snapshot"
default = true
}
variable "backup_window" {
description = "When AWS can run snapshot, can't overlap with maintenance window"
default = "22:00-03:00"
}
variable "backup_retention_period" {
type = "string"
description = "How long will we retain backups"
default = 0
}
variable "tags" {
description = "A map of tags to add to all resources"
default = {}
}
variable "pg_params" {
description = "Parameters for parameter group passed as a list of objects [{...},{...}]"
default = []
}