I'm reinitializing the terraform which state is located in gitlab. And I'm getting such an error:
Error: Incompatible provider version
│
│ Provider registry.terraform.io/terraform-providers/mysql v1.9.0 does not have a package available for your current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this
│ provider may have different platforms supported.
I guess it's because I use MAC M1. Here is how my configuration looks like:
required_providers {
mysql = {
source = "terraform-providers/mysql"
version = "~> 1.9.0"
}
}
I tried to change the source to the "petaju/mysql" but still getting the same error. Also before that moved "terraform.lock.hcl" to another folder. I just need to successfully initialize terraform and no matter will it require to change the source of the mysql provider