Linux上で運用していたTerraformコードがMac上でinitに失敗する場合の対処法
code:error
╷
│ Error: Failed to install provider from shared cache
│
│ Error while importing hashicorp/aws v3.70.0 from the shared cache directory: the provider cache at .terraform/providers has a copy of registry.terraform.io/hashicorp/aws 3.70.0 that doesn't match any of the checksums recorded in the dependency lock file.
code:solve
terraform providers lock \
-platform=darwin_amd64 \
-platform=darwin_arm64 \
-platform=linux_amd64 \
-platform=linux_arm64
参考