事象
私の環境はMac M1を利用しており、tfenvを用いてTerraformを利用していましたが、GW明けに利用しようとすると、急に”terraformはPCに影響を与えます。ゴミ箱に移動してください”のようなエラーが出てきました。
原因
HashiCorp社側で秘密鍵の更新がMacOSだと4/24に行われたようです。

HCSEC-2023-01 - HashiCorp Response to CircleCI Security Alert
HashiCorp has finished analysis of the subset of repositories that were integrated with CircleCI and have created and executed a proactive secrets rotation plan...
解決方法
再インストールすることで解決します(以下は私が利用している1.3.4での例です)
tfenv uninstall 1.3.4
tfenv install 1.3.4
tfenv use 1.3.4
コメント