Using Terraform CLI, how do you limit planning operation to only specific resource?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform plan -target=resource_type.resource_name
Related Terraform job interview questions
Will Terraform CLI execute the planned actions when you generate a speculative execution plan?
Terraform JuniorWhat is a speculative execution plan in Terraform?
Terraform JuniorUsing Terraform CLI, how do you limit planning operation to only resources of a specific module?
Terraform JuniorUsing Terraform CLI, how do you pass variable value when you execute terraform plan command?
Terraform JuniorUsing Terraform CLI, how do you store a plan to a path so that you would then be able to use it as input to the apply command?
Terraform Junior