Skip to playerSkip to main content
🔥 What you’ll learn in this guide:
✅ How create_before_destroy prevents downtime
✅ When Terraform modifies vs recreates resources
✅ AMI & key pair change behavior explained
✅ Controlling resource recreation order
✅ Zero-downtime deployment strategies
✅ Boost your Terraform certification prep

🎯 Part of our Naresh Technologies DevOps Series – learn Terraform, AWS automation, and production-ready setups with Ram Shaikh.

📌 Follow for more: @nareshitech

#Terraform #DevOps #InfrastructureAsCode #AWS #TerraformCertification #IaC #CloudComputing #AWSDevOps
Transcript
00:00hello guys welcome to naresha technologies my name is ramshake and in this video i'm going to
00:04talk about create before destroy in terraform so there is a concept called create before destroy
00:09in life cycle so let me explain how it is going to work whenever if you change the name of any
00:14server in terraform and if your terraform apply it will modify the property as well as if you give
00:18any change to security group it is going to modify as well as if you change anything in
00:22instance type that is going to modify but if you try to change ami or key pair server is not going
00:28to modify instead it is going to recreate but in the concept of recreation terraform is always going
00:35to destroy the existing server first and going to create the new one later but if i want to alter
00:41the process that means i want to create the new server first and later i want to delete the existing
00:47one so in that case i am going to use the concept called create before destroy so this is one of the
00:53most frequently asked question terraform certification so have a look on it thank you
00:58you
01:00you
01:01you
01:04you
01:06you
Be the first to comment
Add your comment

Recommended