Difference between revisions of "Terraform plan"
Jump to navigation
Jump to search
(→Errors) |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <code>[[terraform]] plan</code> | + | <code>[[terraform]] plan</code> ([https://www.terraform.io/docs/cli/commands/plan.html doc]) creates an [[execution plan]]. |
− | + | ||
{{terraform flow}} | {{terraform flow}} | ||
== Command examples == | == Command examples == | ||
* <code>[[terraform plan --help]]</code> | * <code>[[terraform plan --help]]</code> | ||
+ | * <code>[[-no-color]]</code> | ||
* <code>terraform plan [[-out]]=tfplan.out</code> | * <code>terraform plan [[-out]]=tfplan.out</code> | ||
* <code>terraform plan [[-out]]=[[tfplan]]</code> | * <code>terraform plan [[-out]]=[[tfplan]]</code> | ||
Line 21: | Line 22: | ||
-replace=ADDRESS | -replace=ADDRESS | ||
[[terraform plan -target]]=ADDRESS | [[terraform plan -target]]=ADDRESS | ||
+ | |||
+ | |||
+ | tf plan 2>&1 | ||
== Execution examples == | == Execution examples == | ||
* [[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 34: | Line 46: | ||
* <code>[[terragrunt plan]]</code> | * <code>[[terragrunt plan]]</code> | ||
* <code>[[terraform debug]]</code> | * <code>[[terraform debug]]</code> | ||
− | * <code>[[ | + | * <code>[[export TF_LOG=DEBUG]]</code> |
+ | * [[ReferenceTransformer]] | ||
+ | * <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]
terraform plan --help
-no-color
terraform plan -out=tfplan.out
terraform plan -out=tfplan
terraform plan -lock=false
terraform plan -var-file="your_file.tfvars"
terraform plan -var=XXXX
terraform plan -replace=XXXX
terraform plan -target
terraform plan -refresh-only
terraform plan -parallelism
terraform plan | more -R
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]
- Terraform examples: Terraform: Hello_world.tf
- GitLab Preview of summary of
terraform plan
in Merge Requests https://about.gitlab.com/releases/2020/05/22/gitlab-13-0-released/#review-summary-of-terraform-plan-in-merge-requests terraform validate, terraform apply, terraform show
aws cloudformation list-change-sets
aws cloudformation describe-change-set
terragrunt plan
terraform debug
export TF_LOG=DEBUG
- ReferenceTransformer
Plan: 0 to add, 0 to change, 0 to destroy.
terraform test
See also[edit]
Advertising: