The post Multi User Edits and Terraform State file appeared first on For all your terraform needs.
]]>terraform state pull
Always use terraform state pull prior to starting work on the tf project.
To ensure that you always pick up the latest terraform state, you need to perform a special operation.
Apart from doing the normal git pull it is also good to do the terraform state pull . All latest changes within the terraform state file will be pulled with this command.
terraform state pull
This is a command that can potentially lead to an inconsistent state. Push might override other team member changes on to terraform state file. It is often discouraged to use terraform state push command.
terraform state push
1. Lineage ID – Terraform has a safety mechanism based on a lineage ID assigned to each state file. If you are attempting to push the terraform state file with a different lineage ID then terraform will not allow it.
2. Serial Number – Terraform also assigns a unique and higher serial number to each terraform state file.
The post Multi User Edits and Terraform State file appeared first on For all your terraform needs.
]]>