Difference between revisions of "Terraform apply"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(17 intermediate revisions by 6 users not shown)
Line 4: Line 4:
 
== Options ==
 
== Options ==
 
* <code>[[terraform]] apply</code>
 
* <code>[[terraform]] apply</code>
 +
* <code>[[terraform apply --help]]</code>
 
* <code>[[terraform apply -auto-approve]]</code>
 
* <code>[[terraform apply -auto-approve]]</code>
* <code>[[terraform apply --help]]</code>
+
* <code>[[terraform apply -refresh-only]]</code>
 
* <code>terraform apply [[-var]]="[[image_id]]=ami-abc123"</code>
 
* <code>terraform apply [[-var]]="[[image_id]]=ami-abc123"</code>
 
* <code>terraform apply [[-var]]="[[image_id]]=ami-abc123 [[-var]]="your_second_var=yourvalue"</code>
 
* <code>terraform apply [[-var]]="[[image_id]]=ami-abc123 [[-var]]="your_second_var=yourvalue"</code>
 
* <code>terraform apply [[-var-file]]="your_file[[.tfvars]]"</code>
 
* <code>terraform apply [[-var-file]]="your_file[[.tfvars]]"</code>
 +
* <code>[[terraform apply -destroy]]</code>
 +
* <code>[[terraform apply -replace]]="aws_instance.example[0]"</code>
 +
 +
Only apply to specific resources:
 +
* <code>[[terraform apply -target]]</code>
 +
[[excluded]] related term
  
 
== Execution examples ==
 
== Execution examples ==
Line 18: Line 25:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[terraform show]]</code>
 
* <code>[[terraform show]]</code>
* <code>[[terraform apply]] [[-var]] ‘myvar=football’</code>
 
 
* <code>[[main.tf]], [[variables.tf]]</code>
 
* <code>[[main.tf]], [[variables.tf]]</code>
 
* <code>[[terraform init]]</code>
 
* <code>[[terraform init]]</code>
 
* <code>[[terraform destroy]]</code>
 
* <code>[[terraform destroy]]</code>
 
* [[Terraform: Hello world.tf]]
 
* [[Terraform: Hello world.tf]]
 +
* <code>[[Error: failed to render]]</code>
 +
* <code>[[aws cloudformation deploy]]</code>
 +
* [[Deploy EKS cluster using Terraform]]
 +
* <code>[[terragrunt run-all apply]]</code>
 +
* [[aws instance.your instance name will be updated in-place]]
  
 
== See also ==
 
== See also ==
 
* {{main.tf}}
 
* {{main.tf}}
 
* {{terraform apply}}
 
* {{terraform apply}}
* {{terraform cmd}}
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 21:07, 22 March 2023

Advertising: