terraform plan includes a refresh which compare the state with the real world
Reads the current state of any already-existing remote objects to make sure that the Terraform state is up-to-date.
B. Compares the state file to your Terraform code and determines if any changes need to be made. The terraform plan command is used to create an execution plan, which shows you the changes that will be made to your infrastructure based on the current Terraform configuration and the current state file. It allows you to review the changes before actually applying them, helping you understand the impact of your changes and catch any unintended modifications before they happen.
B. Compares the state file to your Terraform code and determines if any changes need to be made
Running a terraform plan command performs a comparison between your Terraform configuration files and the current state file. It then generates an execution plan that shows the differences between the desired state (defined in the configuration) and the actual state (represented by the state file). This plan outlines the actions (create, update, or delete) that Terraform will take to reconcile the differences and achieve the desired state when the terraform apply command is executed.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
6169891
3 weeks, 1 day agoSilentH
7 months agotbhtp
1 year, 7 months agocamps
1 year, 7 months agomicropbl4
1 year, 7 months agoRavi528
1 year, 7 months ago