Open
Description
what
resource "aws_rds_cluster" "example" {
# ... other configuration ...
master_password = "${data.aws_kms_secrets.example.plaintext["master_password"]}"
master_username = "${data.aws_kms_secrets.example.plaintext["master_username"]}"
}
why
- More secure. No passwords in terraform statefile.
references
https://www.terraform.io/docs/providers/aws/d/kms_secrets.html