Interview Prep/Terraform/Security, Secrets and Access

What is the better pattern for RDS master passwords?

BeginnerProductionSecurity, Secrets and Access
Answer

Set manage_master_user_password = true so RDS generates and rotates the password in Secrets Manager. Terraform never sees it. Applications fetch it by secret ARN (output the ARN), and rotation happens without a Terraform apply. This avoids both random_password in state and password drift.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access