File size: 1,064 Bytes
7c19d46 | 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 | # RDS Module Variables
variable "name" {
type = string
}
variable "engine" {
type = string
default = "postgres"
}
variable "engine_version" {
type = string
default = "16.1"
}
variable "engine_mode" {
type = string
default = "provisioned" # "serverless" for Aurora Serverless
}
variable "instance_class" {
type = string
default = "db.r6g.large"
}
variable "database_name" {
type = string
}
variable "master_username" {
type = string
default = "dbadmin"
sensitive = true
}
variable "master_password" {
type = string
sensitive = true
}
variable "allocated_storage" {
type = number
default = 100
}
variable "multi_az" {
type = bool
default = true
}
variable "backup_retention_period" {
type = number
default = 35
}
variable "database_subnet_ids" {
type = list(string)
}
variable "vpc_id" {
type = string
}
variable "allowed_security_group_ids" {
type = list(string)
}
variable "kms_key_arn" {
type = string
}
variable "tags" {
type = map(string)
default = {}
}
|