module "db" { source = "terraform-aws-modules/rds/aws" ......
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/512f2e5b-5efb-4f50-9534-870f0fa3abb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/504ae5d6-3960-48fb-aaa2-f3c9bae469f4%40googlegroups.com.
That's a very good question Pravan.I used the terraform rds module.After I did a terraform destroy, it deleted all my RDS SNAPSHOT BACKUPS!I was shocked.I had final_snapshot_identifier set also!It really scared me. I've never seen behavior like that. Why would it delete old snapshots of your database? That's the whole point of having backup retention set.I still havn't resolved the cause was, but that is definitely bad news!
So it deleted the final snapshot also? Or just any other remaining automated snapshots? If the later that's default AWS behaviour, hence the final shapshot options.-Andrew
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CANX4BJUMpYdhNts0NfRiZu%2B43_mEURdegroE_CgxUZyBd%2BQprA%40mail.gmail.com.
On Jun 19, 2018, at 1:18 AM, Pavan K <pavan...@gmail.com> wrote:Hi Sean: Yes unfortunately I had similar experience which is why I started this post. One of our production RDS Instance managed by Terraform got deleted when someone accidentally applied a change that involved deletion and creation of new resources.Here is what we learned which might help you. The skip_final_snapshot should be set to false even though that's the default per the docs hereIf one is using the terraform-aws-rds modue, the value of skip_final_snapshot is set to true by default which will override above setting: https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/modules/db_instance/variables.tf
So set the identifier as well as the skip_final_snapshot boolean to false. Otherwise aws deletes all the automated backups when the rds instance is gone (except the manual snapshots and final snapshot if above flag is set to false.
Hopefully someone in the forum has some feedback on my original question around setting prevent_destroy key