Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › Chapter 36: Terraform count for_each dynamic lifecycle and depends_on

How do you stop Terraform from deleting a production database?

How do you stop Terraform from deleting a production database? Add lifecycle { prevent_destroy = true } to the resource. Any plan that would destroy it fails with an error. Also turn on the service’s own protection, like RDS deletion_protection.

How do you stop Terraform from deleting a production database? Add lifecycle { prevent_destroy = true } to the resource. Any plan that would destroy it fails with an error. Also turn on the service’s own protection, like RDS deletion_protection.
Download PNG

Lesson: 36.4 lifecycle — control how changes happen · मराठी card