RDS Module¶
Source: tofu/modules/rds
Creates an RDS instance with KMS encryption, automated backups, and Multi-AZ support.
Inputs¶
| Variable | Type | Description |
|---|---|---|
name |
string | Identifier prefix |
engine |
string | Database engine (mysql, mariadb) |
engine_version |
string | Engine version |
vpc_id |
string | VPC ID |
subnet_ids |
list(string) | Subnet IDs for subnet group |
kms_key_arn |
string | KMS key for encryption at rest |
db_name |
string | Database name |
db_username |
string | Master username |
db_password |
string | Master password |
backup_retention_days |
number | Backup retention period |
app_security_group_ids |
list(string) | SGs allowed to connect on 3306 |
tags |
map(string) | Resource tags |
Outputs¶
| Output | Description |
|---|---|
endpoint |
RDS endpoint (host:port) |