Difference between revisions of "Terraform plan"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
 
== Command examples ==
 
== Command examples ==
 +
* <code>[[terraform plan --help]]</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 10: Line 11:
 
* <code>terraform plan [[-var-file]]="your_file.tfvars"</code>
 
* <code>terraform plan [[-var-file]]="your_file.tfvars"</code>
 
* <code>[[terraform]] plan -var=XXXX</code>
 
* <code>[[terraform]] plan -var=XXXX</code>
* <code>[[terraform plan --help]]</code>
 
 
* <code>terraform plan [[-replace]]=XXXX</code>
 
* <code>terraform plan [[-replace]]=XXXX</code>
 
* <code>terraform plan | [[more -R]]</code>
 
* <code>terraform plan | [[more -R]]</code>

Revision as of 18:11, 13 October 2022

terraform plan creates an execution plan.

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

Command examples

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

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

Execution examples

Related terms

See also

Advertising: