F.A.Q.

Why do Terraform logs show warnings after generating Destroy-Plan and Destroy Jobs?

  • 5 May 2023
  • 0 replies
  • 10 views

Userlevel 4
Badge

After the generation of destroy plan or deletion of resources, Terraform might log warning messages such as below:

│ Warning: Resource targeting is in effect

│ You are creating a plan with the -target option, which means that the
│ result of this plan may not represent all of the changes requested by the
│ current configuration.

│ The -target option is not for routine use, and is provided only for
│ exceptional situations such as recovering from errors or mistakes, or when
│ Terraform specifically suggests to use it as part of an error message.

 

│ Warning: Applied changes may be incomplete

│ The plan was created with the -target option in effect, so some changes
│ requested in the configuration may have been ignored and the output values
│ may not be fully updated. Run the following command to verify that no other
│ changes are pending:
│ terraform plan

│ Note that the -target option is not suitable for routine use, and is
│ provided only for exceptional situations such as recovering from errors or
│ mistakes, or when Terraform specifically suggests to use it as part of an
│ error message.

 

These warning messages are generated if not all the objects in the Object Group are deleted.

 


0 replies

Be the first to reply!

Reply