Difference between revisions of "Terraform apply -replace"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <code>[[terraform apply]] -replace="aws_instance.example[0]"</code> | + | * <code>[[terraform apply]] -replace="[[aws_instance]].example"</code> |
+ | * <code>[[terraform apply]] -replace="[[aws_instance]].example[0]"</code> | ||
+ | == Examples == | ||
+ | terraform apply tf.out | ||
+ | |||
+ | [[Apply complete!]] Resources: 0 added, 0 changed, 0 destroyed. | ||
== Related == | == Related == | ||
+ | * <code>[[terraform plan -replace]]</code> | ||
* <code>[[terraform taint (deprecated)]]</code> | * <code>[[terraform taint (deprecated)]]</code> | ||
+ | * <code>[[terraform show]] | grep #</code> | ||
* <code>[[TF_LOG]]</code> | * <code>[[TF_LOG]]</code> | ||
* <code>[[terraform state rm]]</code> | * <code>[[terraform state rm]]</code> |
Latest revision as of 06:27, 25 April 2023
terraform apply -replace="aws_instance.example"
terraform apply -replace="aws_instance.example[0]"
Examples[edit]
terraform apply tf.out Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Related[edit]
terraform plan -replace
terraform taint (deprecated)
terraform show | grep #
TF_LOG
terraform state rm
See also[edit]
Advertising: