How to target resources in Terraform

Jack Roper
CodeX
Published in
4 min readSep 8, 2023

--

In this short article, we will look at how to target specific resources in Terraform. We will explain the use of the -target option, and how to use it to target single and multiple resources with some examples, and in what circumstances you should avoid using it!

Photo by Silvan Arnet on Unsplash

What is a target in Terraform?

--

--

Jack Roper
CodeX
Writer for

A blog about DevOps & Cloud Tech. Specializing in Terraform, Kubernetes, Azure & Azure DevOps! ☁️