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
|
variable "identifier" {
description = "RDS instance identifier"
type = string
}
variable "engine" {
description = "Oracle engine edition — oracle-ee, oracle-ee-cdb, oracle-se2, oracle-se2-cdb"
type = string
default = "oracle-ee"
}
variable "engine_version" {
description = "Oracle engine version"
type = string
default = "19.0.0.0.ru-2024-04.rur-2024-04.r1"
}
variable "license_model" {
description = "License model — license-included or bring-your-own-license"
type = string
default = "bring-your-own-license"
validation {
condition = contains(["license-included", "bring-your-own-license"], var.license_model)
error_message = "license_model must be license-included or bring-your-own-license."
}
}
variable "instance_class" {
description = "RDS instance class"
type = string
default = "db.m5.large"
}
variable "allocated_storage" {
description = "Allocated storage in GiB"
type = number
default = 100
}
variable "max_allocated_storage" {
description = "Maximum storage for autoscaling"
type = number
default = 500
}
variable "username" {
description = "Master username"
type = string
default = "admin"
}
variable "manage_master_user_password" {
description = "Let RDS manage the master password in Secrets Manager"
type = bool
default = true
}
variable "subnet_ids" {
description = "Subnet IDs for the DB subnet group"
type = list(string)
}
variable "security_group_ids" {
description = "Security group IDs"
type = list(string)
}
variable "multi_az" {
description = "Enable Multi-AZ"
type = bool
default = true
}
variable "kms_key_id" {
description = "KMS key ARN for storage encryption"
type = string
default = null
}
variable "backup_retention_period" {
description = "Days to retain automated backups"
type = number
default = 7
}
variable "deletion_protection" {
description = "Enable deletion protection"
type = bool
default = true
}
variable "skip_final_snapshot" {
description = "Skip final snapshot on deletion"
type = bool
default = false
}
variable "monitoring_interval" {
description = "Enhanced monitoring interval in seconds"
type = number
default = 60
}
variable "character_set_name" {
description = "Oracle database character set"
type = string
default = "AL32UTF8"
}
variable "option_group_name" {
description = "Custom option group name (optional)"
type = string
default = null
}
variable "parameters" {
description = "Map of DB parameter names to values"
type = map(string)
default = {}
}
variable "tags" {
description = "Resource tags to apply to all resources"
type = map(string)
default = {}
}
|