-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
138 lines (117 loc) · 3.19 KB
/
variables.tf
File metadata and controls
138 lines (117 loc) · 3.19 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
variable "name_prefix" {
description = "Prefix for all resource names"
type = string
nullable = false
}
variable "postgres_version" {
description = "Version of PostgreSQL to use"
type = string
default = "15"
nullable = false
}
variable "instance_class" {
description = "Instance class for the RDS instance"
type = string
nullable = false
}
variable "allocated_storage" {
description = "Allocated storage for the RDS instance (in GB)"
type = number
default = 50
nullable = false
}
variable "max_allocated_storage" {
description = "Maximum storage for autoscaling (in GB)"
type = number
default = 100
nullable = false
}
variable "database_name" {
description = "Name of the database to create"
type = string
nullable = false
}
variable "database_username" {
description = "Username for the database"
type = string
nullable = false
}
variable "database_password" {
description = "Password for the database"
type = string
sensitive = true
}
variable "multi_az" {
description = "Enable multi-AZ deployment"
type = bool
default = false
nullable = false
}
variable "database_subnet_ids" {
description = "List of subnet IDs for the database"
type = list(string)
nullable = false
}
variable "vpc_id" {
description = "ID of the VPC"
type = string
nullable = false
}
variable "cluster_name" {
description = "Name of the EKS cluster"
type = string
nullable = false
}
variable "cluster_security_group_id" {
description = "Security group ID of the EKS cluster"
type = string
nullable = false
}
variable "node_security_group_id" {
description = "Security group ID of the EKS nodes"
type = string
nullable = false
}
variable "backup_retention_period" {
description = "Number of days to retain backups"
type = number
default = 7
nullable = false
}
variable "backup_window" {
description = "Preferred backup window"
type = string
default = "03:00-06:00"
nullable = false
}
variable "maintenance_window" {
description = "Preferred maintenance window"
type = string
default = "Mon:00:00-Mon:03:00"
nullable = false
}
variable "tags" {
description = "Tags to apply to all resources"
type = map(string)
default = {}
}
variable "kms_key_id" {
description = "The ARN for the KMS encryption key. If not specified and create_kms_key is false, the default AWS managed key will be used."
type = string
default = null
}
variable "create_kms_key" {
description = "Whether to create a new KMS key for RDS encryption. If false and kms_key_id is not specified, the default AWS managed key will be used."
type = bool
default = false
}
variable "kms_key_deletion_window_in_days" {
description = "The waiting period, specified in number of days, after which AWS KMS deletes the KMS key. Valid values are 7-30 days."
type = number
default = 30
}
variable "kms_key_enable_rotation" {
description = "Specifies whether key rotation is enabled for the KMS key."
type = bool
default = true
}