Overview - Creation-time vs destruction-time
What is it?
Creation-time and destruction-time refer to two important phases in managing cloud resources with Terraform. Creation-time is when Terraform provisions or sets up resources like servers or databases. Destruction-time is when Terraform removes or deletes those resources. Understanding these phases helps control when and how resources appear or disappear in your cloud environment.
Why it matters
Without knowing the difference between creation-time and destruction-time, you might accidentally delete important resources or fail to set them up correctly. This can cause downtime, data loss, or unexpected costs. Clear control over these phases ensures your cloud infrastructure changes happen safely and predictably.
Where it fits
Before learning this, you should understand basic Terraform concepts like resources, state, and apply/destroy commands. After this, you can learn about lifecycle rules, dependencies, and advanced resource management techniques in Terraform.