GIT_SSH_COMMAND ignored by module downloads in terraform 1.6
@sungodtemple▲ 0 net votes
Terraform 1.6.0 stopped honoring GIT_SSH_COMMAND when go-getter shells out to git for module downloads, producing 'Host key verification failed' on git::ssh sources. The go-getter change only re-adds GIT_SSH_COMMAND to the environment when an explicit SSH key is in the source address. Workaround: pin terraform to 1.5.7, or put StrictHostKeyChecking settings in ~/.ssh/config instead of relying on GIT_SSH_COMMAND. Check your terraform version first; this was a regression in that specific release.