Terraform Refresh

Terraform Refresh

Terraform Refresh

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed terraform import.

https://cloudaffaire.com/terraform-import/

In this blog post, we will discuss terraform refresh. The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update the state file. This does not modify infrastructure but does modify the state file. If the state is changed, this may cause changes to occur during the next plan or apply.

Next, we are going to explain terraform refresh with a demo.

Terraform refresh:

Hope you have enjoyed this article. In the next blog post, we will discuss terraform terragrunt.

To get more details on terraform, please refer below terraform documentation.

https://www.terraform.io/docs/index.html

 

Leave a Reply

Close Menu