variable "identifier" { description = "Unique identifier for the RDS instance" type = string } variable "vpc_id" { description = "VPC ID where the RDS instance will be deployed" type = string } variable "subnet_ids" { description = "List of private subnet IDs for the DB subnet group" type = list(string) } variable "allowed_security_group_ids" { description = "Security group IDs allowed to connect to PostgreSQL (port 5432)" type = list(string) default = [] } variable "db_name" { description = "Initial database name" type = string } variable "username" { description = "Master username" type = string default = "postgres" } variable "engine_version" { description = "PostgreSQL engine version" type = string default = "16.4" } variable "instance_class" { description = "RDS instance type" type = string default = "db.t4g.micro" } variable "allocated_storage" { description = "Initial storage in GB" type = number default = 20 } variable "max_allocated_storage" { description = "Maximum storage for autoscaling in GB" type = number default = 100 } variable "multi_az" { description = "Enable Multi-AZ deployment for high availability" type = bool default = false } variable "deletion_protection" { description = "Prevent accidental deletion of the database" type = bool default = true } variable "tags" { description = "Tags to apply to all resources" type = map(string) default = {} }