/plushcap/analysis/spacelift/spacelift-terraform-target

Terraform Target Flag: How to Target Resources in Terraform

What's this blog post about?

The -target option in Terraform is used to target a specific resource for action instead of performing the action on all resources. It can be used with the terraform plan, apply, or destroy commands. This option is useful when you want to apply changes to a single or multiple resources and ignore all other resources. However, it should be used with caution as it can create resource dependencies and cause unexpected changes to your infrastructure. Terraform has built-in dependency mapping that should be taken advantage of wherever possible.

Company
Spacelift

Date published
Sept. 6, 2023

Author(s)
Jack Roper

Word count
851

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.