-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
118 lines (97 loc) · 2.74 KB
/
variables.tf
File metadata and controls
118 lines (97 loc) · 2.74 KB
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
variable "allocated_storage" {
description = "Size in GB for the database instance"
type = number
}
variable "apply_immediately" {
description = "Set to true to immediately apply changes and cause downtime"
type = bool
default = false
}
variable "ca_cert_id" {
type = string
description = "Certificate authority for RDS database"
default = "rds-ca-rsa2048-g1"
}
variable "engine_version" {
type = string
description = "Version for RDS database engine"
}
variable "identifier" {
type = string
description = "Unique identifier for this database"
}
variable "instance_class" {
description = "Tier for the database instance"
type = string
}
variable "kms_key_id" {
description = "KMS key to encrypt data at rest"
type = string
default = null
}
variable "max_allocated_storage" {
type = number
description = "Maximum size GB after autoscaling"
default = 0
}
variable "performance_insights_enabled" {
type = bool
default = true
description = "Set to false to disable performance insights"
}
variable "publicly_accessible" {
type = bool
default = false
description = "Set to true to access this database outside the VPC"
}
variable "replicate_source_db" {
description = "Identifier of the primary database instance to replicate"
type = string
}
variable "storage_encrypted" {
type = bool
default = true
description = "Set to false to disable on-disk encryption"
}
variable "subnet_group_name" {
description = "Name of the RDS subnet group (only for cross-region replication)"
type = string
default = null
}
variable "tags" {
type = map(string)
description = "Tags to be applied to created resources"
default = {}
}
variable "vpc_security_group_ids" {
type = list(string)
description = "IDs of VPC security groups for this instance (if different from primary)"
default = []
}
# CloudWatch variables
variable "alarm_actions" {
type = list(string)
description = "SNS topic ARNs or other actions to invoke for alarms"
default = []
}
variable "create_cloudwatch_alarms" {
type = bool
default = true
description = "Set to false to disable creation of CloudWatch alarms"
}
# Parameter group variables
variable "create_parameter_group" {
type = bool
description = "Set to false to use existing parameter group"
default = true
}
variable "force_ssl" {
type = bool
description = "Set to false to allow unencrypted connections to the database"
default = true
}
variable "parameter_group_name" {
description = "Name of the RDS parameter group; defaults to identifier"
type = string
default = ""
}