> For the complete documentation index, see [llms.txt](https://notes.nomanaziz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.nomanaziz.me/devops/infrastructure-as-a-code-iac/terraform/8.-target-resources.md).

# 8. Target Resources

* 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
* E.g `terraform destory -target aws_instance.web-server-instance` is used to only destroy the ec2 instance from the whole deployment
