Terraform - Error - Checksum Mismatch
Last Modified on
terraform
error
snippet
Starting with the introduction of the M1 and M2 macs to the team, we’ve started getting errors on our terraform CI/CD.
Terraform: Failed to install provider, doesn’t match checksums from dependency lock file
At least in our situation, this indicates that the lock file was built on a system with an architecture different than the one it is being run on. In our case, the system was built on a mac and run on linux.
The fix is pretty simple:
terraform providers lock \
-platform=windows_amd64 \
-platform=darwin_amd64 \
-platform=linux_amd64