Skip to playerSkip to main content
πŸ’» Remove specific AWS resources safely – without deleting your entire infrastructure!

πŸ”₯ In this tutorial, you’ll learn:
βœ… How to use terraform destroy -target
βœ… Selective resource removal in AWS
βœ… Best practices for Terraform state file management
βœ… Preventing accidental deletions in infrastructure

πŸ‘¨β€πŸ’» Perfect for:
DevOps Engineers | Cloud Architects | AWS Managers | Terraform Beginners

⚑ Boost your Infrastructure as Code skills today!

πŸ“Œ Learn more at πŸ‘‰ @nareshitech

#Terraform #DevOps #AWS #InfrastructureAsCode #CloudComputing #NareshIT #TerraformTutorial #TerraformTips
Transcript
00:00hello guys welcome to naresha technologies my name is raham sheikh and in this video i'm going to
00:04talk about terraform target command so whenever you give terraform destroy command by default it
00:09is going to remove all the resource in state 5 but i have a specific requirement out of 10 servers
00:16i want to remove only one server in that case terraform destroy is not going to help you file
00:21why because if you give terraform destroy that is going to destroy all the 10 servers but let's say
00:27i want to destroy a specific server in that case add the flag called target the moment if i give
00:32terraform destroy target aws instance with block name 1 with a index number 3 so that is going to
00:39destroy the fourth server because the index number of a fourth server is going to be third so
00:44automatically terraform is going to remove the server number for itself thank you
Comments

Recommended