terraform-aws-rds icon indicating copy to clipboard operation
terraform-aws-rds copied to clipboard

Database replica gets deleted on subsequent terraform apply if storage_encrypted is set to false

Open rohanagrawal-amex opened this issue 3 years ago β€’ 0 comments

Description

For our AWS postgresql DB replication we use this module. The replica is getting created, However we noticed that the DB replica once created would getting destroyed on terraform apply. I noticed the issue seemed to be connected to the storage_encrypted which was set to false. Unless this is set to true, terraform apply deletes the DB replica once it creates that on next apply. Not sure if this is by design. Could i suggest to update the readme accordingly for this parameter.

If your request is for a new feature, please use the Feature request template.

  • [x] βœ‹ I have searched the open/closed issues and my issue is not listed.

⚠️ Note

Versions

  • Module version [Required]: 4.0

  • Terraform version:

  • Provider version(s):

Reproduction Code [Required]

Steps to reproduce the behavior:

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

Additional context

rohanagrawal-amex avatar Sep 12 '22 17:09 rohanagrawal-amex