Difference between revisions of "Terraform apply"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
* <code>[[terraform apply --help]]</code> | * <code>[[terraform apply --help]]</code> | ||
* <code>[[terraform apply -auto-approve]]</code> | * <code>[[terraform apply -auto-approve]]</code> | ||
− | |||
* <code>[[terraform apply -refresh-only]]</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> | ||
Line 16: | Line 15: | ||
Only apply to specific resources: | Only apply to specific resources: | ||
* <code>[[terraform apply -target]]</code> | * <code>[[terraform apply -target]]</code> | ||
+ | [[excluded]] related term | ||
== Execution examples == | == Execution examples == | ||
Line 33: | Line 33: | ||
* [[Deploy EKS cluster using Terraform]] | * [[Deploy EKS cluster using Terraform]] | ||
* <code>[[terragrunt run-all apply]]</code> | * <code>[[terragrunt run-all apply]]</code> | ||
+ | * [[aws instance.your instance name will be updated in-place]] | ||
== See also == | == See also == |
Latest revision as of 21:07, 22 March 2023
Options[edit]
terraform apply
terraform apply --help
terraform apply -auto-approve
terraform apply -refresh-only
terraform apply -var="image_id=ami-abc123"
terraform apply -var="image_id=ami-abc123 -var="your_second_var=yourvalue"
terraform apply -var-file="your_file.tfvars"
terraform apply -destroy
terraform apply -replace="aws_instance.example[0]"
Only apply to specific resources:
excluded related term
Execution examples[edit]
Related terms[edit]
See also[edit]
Advertising: