terraformdevopsamazon-rdsaws-devops

How can we modify existing db password on re-apply terraform RDS instances?


I am creating a new aws_db_instance and after terraform deployment I want to update my master password.

enter image description here when I pass a new password using a variable or as a string. But when I apply then destroy rds and recreate instance.

How can we modify only RDS DB instance password using terraform?

enter image description here


Solution

  • From your screenshot, you have modified the storage_encrypted value, from true to null (false). Terraform is very clearly telling you that is the reason it is replacing the instance.