What does Terraform refresh really do

0 votes

Hi Team,

I am new to Terraform. I want to know about terraform refresh command. Can anyone tell me about this?

Dec 7, 2020 in Terraform by akhtar
• 38,180 points
620 views

1 answer to this question.

0 votes

Hi@akhtar,

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.

answered Dec 7, 2020 by MD
• 95,220 points

Related Questions In Terraform

0 votes
1 answer

What is data source in Terraform?

Hi@akhtar, Data sources allow data to be fetched or ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,220 points
559 views
0 votes
1 answer

How does local-exec provisioner work in Terraform?

Hi@akhtar, You can use a local-exec provisioner to ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,220 points
3,016 views
0 votes
1 answer

What is the remote-exec provisioner in Terraform?

Hi@akhtar, You can use a remote-exec provisioner to ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,220 points
1,996 views
+2 votes
1 answer

What is the difference between modules and workspaces in Terraform?

Hi@akhtar, I think a key difference between Terraform ...READ MORE

answered Aug 16, 2020 in Terraform by MD
• 95,220 points
502 views
0 votes
1 answer

'terraform' is not recognized as an internal or external command, operable program or batch file.

Hi@akhtar, You have to set an environment variable ...READ MORE

answered Jun 10, 2020 in Terraform by MD
• 95,220 points
4,050 views
0 votes
1 answer

How to import module in Terraform code?

Hi@akhtar, A module is a container for multiple resources that ...READ MORE

answered Jul 21, 2020 in Terraform by MD
• 95,220 points
770 views
0 votes
1 answer

What is a Terraform provider?

Hi@akhtar, Terraform is agnostic to the underlying cloud ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,220 points
178 views
0 votes
1 answer

How to read data from a file in Terraform?

Hi@akhtar, You can use the file function in Terraform. This file function ...READ MORE

answered Jul 27, 2020 in Terraform by MD
• 95,220 points
1,728 views
0 votes
1 answer

How to do ssh in EC2 instance using Terraform?

Hi@akhtar, To ssh in your EC2 instance, you ...READ MORE

answered Jun 15, 2020 in Terraform by MD
• 95,220 points
3,705 views
0 votes
2 answers

What is Terraform?

Terraform is a provisioning tool that seems ...READ MORE

answered Aug 28, 2020 in Terraform by nbavis
• 380 points
379 views