1) Create a secret to store DB credentials.
Define keys:
db_username
db_password
2) Update Terraform configuration to reference the secret
user=${data.aws_secretsmanager_secret_version.db_credentials.db_username} password=${data.aws_secretsmanager_secret_version.db_credentials.db_password}
3) Include IAM permissions in Terraform module to allow read access
1) Create a secret to store DB credentials. Define keys:
2) Update Terraform configuration to reference the secret
user=${data.aws_secretsmanager_secret_version.db_credentials.db_username} password=${data.aws_secretsmanager_secret_version.db_credentials.db_password}
3) Include IAM permissions in Terraform module to allow read access