![]() Successfully removed 1 resource instance(s).Īfter that, I ran terraform init and terraform apply without issues on my MacBook Pro. You will see the Profile option inside Safari only after creating at least one profile using the steps above. $ terraform state rm data.template_erdata ![]() It turns out that I had to remove the data source from my Terraform state. Terraform Error: Incompatible provider version persistsīut, when I tried to run terraform init again, I still got the same error message as before. The template_file data source reads the template file userdata.sh.tpl and replaces the placeholders with the variables (see vars). tagsall - A map of tags assigned to the resource, including. ownerid - The ID of the AWS account that owns the Dedicated Host. This is used to launch an instance onto a specific host. The user_data for aws_instance gets rendered by the data source template_file. In addition to all arguments above, the following attributes are exported: id - The ID of the allocated Dedicated Host. So, I looked into my Terraform configuration. I understood from the error message that the template provider with version v2.2.0 is not available for the ARM architecture. Other versions of this provider may have different platforms supported. Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Provider /hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64. Installed hashicorp/aws v4.15.1 (signed by HashiCorp) Reusing previous version of hashicorp/aws from the dependency lock file Reusing previous version of hashicorp/template from the dependency lock file I got the following error when running terraform init on my new MacBook Pro for the first time. Terraform Error: Incompatible provider version Luckily, there is an easy way to fix the issue. That’s because Hashicorp does not provide the template provider for the ARM platform. Did you recently switch to a Mac with Apple Silicon (ARM processor architecture)? The chances are high that you will see an Error: Incompatible provider version when running terraform init the next time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |