Difference between revisions of "Terraform plan"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 29: Line 29:
 
* [[Examples: terraform plan]]  
 
* [[Examples: terraform plan]]  
 
* [[Terraform plan execution with errors]]
 
* [[Terraform plan execution with errors]]
 +
 +
== Errors ==
 +
* <code>[[Error: Reference to undeclared input variable]]</code>
 +
 +
 +
2024-07-03T13:44:35.311Z [WARN]  Provider "[[registry.terraform.io]]/datadog/datadog" produced an invalid plan for datadog_user.yourusers["yourusername"], but we are tolerating it because it is using the [[legacy plugin SDK]].
 +
    The following problems may be the cause of any confusing errors from downstream operations:
 +
      - .send_user_invitation: planned value cty.True for a non-computed ...
  
 
== Related terms ==
 
== Related terms ==
Line 38: Line 46:
 
* <code>[[terragrunt plan]]</code>
 
* <code>[[terragrunt plan]]</code>
 
* <code>[[terraform debug]]</code>
 
* <code>[[terraform debug]]</code>
* <code>[[Error: Reference to undeclared input variable]]</code>
 
 
* <code>[[export TF_LOG=DEBUG]]</code>
 
* <code>[[export TF_LOG=DEBUG]]</code>
 
* [[ReferenceTransformer]]
 
* [[ReferenceTransformer]]
* [[Plan: 0 to add, 0 to change, 0 to destroy.]]
+
* <code>[[Plan: 0 to add, 0 to change, 0 to destroy.]]</code>
 +
* <code>[[terraform test]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:56, 3 July 2024

terraform plan (doc) creates an execution plan.

 terraform init -> terraform plan ->  terraform apply -> terraform show

Command examples[edit]

https://www.terraform.io/cli/commands/plan#planning-options

-refresh=false
-replace=ADDRESS
terraform plan -target=ADDRESS


tf plan 2>&1

Execution examples[edit]

Errors[edit]


2024-07-03T13:44:35.311Z [WARN]  Provider "registry.terraform.io/datadog/datadog" produced an invalid plan for datadog_user.yourusers["yourusername"], but we are tolerating it because it is using the legacy plugin SDK.
   The following problems may be the cause of any confusing errors from downstream operations:
     - .send_user_invitation: planned value cty.True for a non-computed ...

Related terms[edit]

See also[edit]

Advertising: