
There are multiple stages in a Terraform workflow:
Preview the changes Terraform will make to the infrastructure by running “terraform plan”. It can be triggered as part of a CI/CD pipeline.
Terraform compares the desired state defined in the configuration file with the current state in the state file.
Run “terraform apply” to create, update, or delete resources based on the plan.
Terraform makes API calls to the specified providers (AWS, Azure, GCP, Kubernetes, etc) to provision the resources.
The state file is updated to reflect the new state of the infrastructure.
Terraform state file acts as a single source of truth for the current state of the infrastructure.
State file enables version control and collaboration between team members for future changes.
There are multiple stages in a Terraform workflow:
Preview the changes Terraform will make to the infrastructure by running “terraform plan”. It can be triggered as part of a CI/CD pipeline.
Terraform compares the desired state defined in the configuration file with the current state in the state file.
Run “terraform apply” to create, update, or delete resources based on the plan.
Terraform makes API calls to the specified providers (AWS, Azure, GCP, Kubernetes, etc) to provision the resources.
The state file is updated to reflect the new state of the infrastructure.
Terraform state file acts as a single source of truth for the current state of the infrastructure.
State file enables version control and collaboration between team members for future changes.