Difference between revisions of "Terraform plan"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
* <code>terraform plan [[-var-file]]="your_file.tfvars"</code> | * <code>terraform plan [[-var-file]]="your_file.tfvars"</code> | ||
* <code>[[terraform plan --help]]</code> | * <code>[[terraform plan --help]]</code> | ||
− | * <code>terraform plan -replace=XXXX</code> | + | * <code>terraform plan [[-replace]]=XXXX</code> |
== Execution examples == | == Execution examples == |
Revision as of 15:18, 2 June 2022
terraform plan
creates an execution plan.
terraform init
->terraform plan
->terraform apply
->terraform show
Command examples
terraform plan -out=tfplan.out
terraform plan -out=tfplan
terraform plan -lock=false
terraform plan -var-file="your_file.tfvars"
terraform plan --help
terraform plan -replace=XXXX
Execution examples
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Related terms
- 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
See also
terraform plan
: [-refresh-only | -lock=false
|-target
|-var-file
|will be created
|--help
], Terraform plan errors, Terraform plan examples, Terraform plan execution errors, (known after apply)terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: