forked from infrablocks/terraform-aws-rds-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
115 lines (107 loc) · 4.34 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
variable "vpc_id" {
description = "The ID of the VPC into which to deploy the database."
}
// TODO: rename this to subnet IDs since they could be public.
variable "private_subnet_ids" {
description = "The IDs of the private subnets to deploy the database into."
type = list(string)
}
// TODO: switch security group rules to be less specific about whether public or private.
variable "private_network_cidr" {
description = "The CIDR of the private network allowed access to the database."
}
variable "component" {
description = "The component this database will serve."
}
variable "deployment_identifier" {
description = "An identifier for this instantiation."
}
variable "database_instance_class" {
description = "The instance type of the database instance."
default = "db.t2.micro"
}
variable "storage_type" {
description = "The storage type to use for the database instance. One of \"standard\" (magnetic), \"gp2\" (general purpose SSD), \"gp3\" (general purpose SSD that needs iops independently) or \"io1\" (provisioned IOPS SSD). The default is \"standard\"."
default = "standard"
}
variable "storage_iops" {
description = "The amount of provisioned IOPS. Can only be set when `storage_type` is \"io1\" or \"gp3\"."
type = number
default = null
}
variable "allocated_storage" {
description = "The allocated storage in GBs."
type = number
default = 10
}
variable "max_allocated_storage" {
description = "When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to `allocated_storage`. Must be greater than or equal to `allocated_storage` or 0 to disable Storage Autoscaling."
type = number
default = null
}
variable "database_version" {
description = "The database version. If omitted, it lets Amazon decide."
default = ""
}
variable "database_port" {
description = "The port the database listens on. 5432 by default."
default = "5432"
}
variable "database_name" {
description = "The name of the database schema to create. If omitted, no database schema is created initially."
}
variable "database_master_user" {
description = "The password for the master database user."
}
variable "database_master_user_password" {
description = "The username for the master database user."
}
variable "use_multiple_availability_zones" {
description = "Whether or not to create a multi-availability zone database (\"yes\" or \"no\")."
default = "no"
}
variable "use_encrypted_storage" {
description = "Whether or not to use encrypted storage for the database (\"yes\" or \"no\")."
default = "no"
}
variable "allow_public_access" {
description = "Whether or not to allow public access to the database (\"yes\" or \"no\")."
default = "no"
}
variable "allow_major_version_upgrade" {
description = "Whether or not major version upgrades are allowed (\"yes\" or \"no\"). Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible. Defaults to \"no\"."
default = "no"
}
variable "enable_automatic_minor_version_upgrade" {
description = "Whether or not minor engine upgrades will be applied automatically to the DB instance during the maintenance window (\"yes\" or \"no\"). Defaults to \"yes\"."
default = "yes"
}
variable "enable_performance_insights" {
description = "Whether or not performance insights are enabled for the database (\"yes\" or \"no\"). Defaults to \"no\".."
default = "no"
}
variable "include_self_ingress_rule" {
description = "Whether or not to allow access from the database security group to itself (\"yes\" or \"no\")."
default = "no"
}
variable "snapshot_identifier" {
description = "The identifier of the snapshot to use to create the database."
default = ""
}
variable "backup_retention_period" {
description = "The number of days to retain database backups."
type = number
default = 7
}
variable "backup_window" {
description = "The time window in which backups should take place."
default = "01:00-03:00"
}
variable "maintenance_window" {
description = "The time window in which maintenance should take place."
default = "mon:03:01-mon:05:00"
}
variable "parameter_group_name" {
description = "The name of the desired parameter group"
default = null
}