Description
This entry lists an RDS database instance declared in Terraform.
Potential impact
A database without an owner can miss backups or keep running an unsupported engine version.
Remediation
Record the owning team and service. Check backups, encryption, logs, access and engine support.
Examples
The example adds identification tags. Check tag-based IAM policies. Supply a securely managed password in place of the change-me placeholder.
Before
hcl
resource "aws_db_instance" "app" {
allocated_storage = 20
engine = "mysql"
instance_class = "db.t3.micro"
username = "admin"
password = "change-me"
}
After
hcl
resource "aws_db_instance" "app" {
allocated_storage = 20
engine = "mysql"
instance_class = "db.t3.micro"
username = "admin"
password = "change-me"
tags = {
Service = "app-db"
Environment = "production"
}
}