Back to Blog
Using terraform for mac7/11/2023 ![]() ![]() ![]() I then ran terraform state rm data.template_file.name for all relevant offending resources. Provider_source_address="/hashicorp/$" terraform init The hack in question: #!/usr/bin/env bash Otherwise, you will need to build the provider yourself locally. This hack will only help you run terraform init so that you can migrate away from the provider. My hack at a high level is to point Terraform to a dummy hashicorp/template binary file. Do not keep using this provider if at possible and instead switch to using the templatefile function. As previously stated, the provider has been deprecated for a year which preceded the release of the M1 chip. Unfortunately, you are unable to run terraform init even after removing any references to the the provider (I imagine this has to do with the data resource still existing in the state file). I had a single data resource using template_file. I ran into this issue today after beginning to use a new M1 mac. What is “kreuzwerker/taps/m1-terraform-provider-helper” ?Ī CLI to manage the installation of terraform providers for the Mac M1 chip.Īfter following the above steps, terraform init will run successfully !!! m1-terraform-provider-helper install hashicorp/template -v v2.2.0.brew install kreuzwerker/taps/m1-terraform-provider-helper.│ package available for your current platform, darwin_arm64. │ Provider Terraform Registry v2.2.0 does not have a Now, while executing terraform init you might face the below error if you are working in a MAC with M1 chip in it, tfenv use 1.0.9 #to switch into this version Steps to install terraform of your choice of version using Homebrew: For Terraform Installation and Successful terraform init ![]()
0 Comments
Read More
Leave a Reply. |