We can target to deploy or delete individual resources in our config file.
We can use the -target flag to specify the name of the resource
-target
E.g terraform destory -target aws_instance.web-server-instance is used to only destroy the ec2 instance from the whole deployment
terraform destory -target aws_instance.web-server-instance
Last updated 2 years ago