forked from crazynuxer/terraform-aws-rds-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
169 lines (140 loc) · 4.54 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
variable "product_domain" {
type = "string"
description = "The name of the product domain this RDS belongs to"
}
variable "service_name" {
type = "string"
description = "The name of the service this RDS belongs to, this will be part of the database identifier"
}
variable "environment" {
type = "string"
description = "The environment this RDS belongs to"
}
variable "description" {
type = "string"
description = "The description of this RDS instance"
}
variable "replicate_source_db" {
type = "string"
description = "The source db of read replica instance"
default = ""
}
variable "engine_version" {
type = "string"
description = "The postgres engine version"
default = ""
}
variable "instance_class" {
type = "string"
description = "The instance type of the RDS instance"
}
variable "username" {
type = "string"
description = "Username for the master DB user"
default = "postgres"
}
variable "port" {
type = "string"
description = "The port on which the DB accepts connections"
default = "5432"
}
variable "allocated_storage" {
type = "string"
description = "The allocated storage in gigabytes. For read replica, set the same value as master's"
}
variable "storage_type" {
type = "string"
description = "One of standard (magnetic), gp2 (general purpose SSD), or io1 (provisioned IOPS SSD)"
default = "gp2"
}
variable "iops" {
type = "string"
description = "The amount of provisioned IOPS. Setting this implies a storage_type of io1"
default = "0"
}
variable "storage_encrypted" {
type = "string"
description = "Specifies whether the DB instance is encrypted"
default = "true"
}
variable "kms_key_id" {
type = "string"
description = "Specifies a custom KMS key to be used to encrypt"
default = ""
}
variable "vpc_security_group_ids" {
type = "list"
description = "List of VPC security groups to associate"
}
variable "db_subnet_group_name" {
type = "string"
description = "Name of DB subnet group"
default = ""
}
variable "parameter_group_name" {
type = "string"
description = "Name of the DB parameter group to associate"
}
variable "availability_zone" {
type = "string"
description = "The AZ for the RDS instance. It is recommended to only use this when creating a read replica instance"
default = ""
}
variable "multi_az" {
type = "string"
description = "Specifies if the RDS instance is multi-AZ"
default = "true"
}
variable "allow_major_version_upgrade" {
type = "string"
description = "Indicates that major version upgrades are allowed"
default = "false"
}
variable "auto_minor_version_upgrade" {
type = "string"
description = "Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window"
default = "false"
}
variable "apply_immediately" {
type = "string"
description = "Specifies whether any database modifications are applied immediately, or during the next maintenance window"
default = "false"
}
variable "maintenance_window" {
type = "string"
description = "The window to perform maintenance in. Syntax: 'ddd:hh24:mi-ddd:hh24:mi'"
}
variable "backup_retention_period" {
type = "string"
description = "The days to retain backups for"
default = 7
}
variable "backup_window" {
type = "string"
description = "The daily time range (in UTC) during which automated backups are created if they are enabled. Before and not overlap with maintenance_window"
default = ""
}
variable "skip_final_snapshot" {
type = "string"
description = "Determines whether a final DB snapshot is created before the DB instance is deleted"
default = "false"
}
variable "copy_tags_to_snapshot" {
type = "string"
description = "On delete, copy all Instance tags to the final snapshot (if final_snapshot_identifier is specified)"
default = "true"
}
variable "snapshot_identifier" {
type = "string"
description = "The snapshot ID used to restore the DB instance"
default = ""
}
variable "monitoring_interval" {
type = "string"
description = "The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance"
default = "60"
}
variable "monitoring_role_arn" {
type = "string"
description = "The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs"
}