Difference between revisions of "Terraform apply"
Jump to navigation
Jump to search
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 --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> |
Revision as of 22:17, 31 October 2022
terraform init
->terraform plan
->terraform apply
->terraform show
Options
terraform apply
terraform apply --help
terraform apply -auto-approve
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]"
terraform apply -target
Execution examples
Related terms
terraform show
main.tf, variables.tf
terraform init
terraform destroy
- Terraform: Hello world.tf
Error: failed to render
aws cloudformation deploy
- Deploy EKS cluster using Terraform
terragrunt run-all apply
See also
Advertising: