Terraform MySQL提供程序“错误:无法安装提供程序”

问题描述

开始“ terrain init”序列时遇到此错误。 不确定如何解决。

我尝试过的事情:
terraform 0.13升级。
尝试过更改mysql的固定版本
搜索文档,但找不到类似的问题。

运行“ terraform init”后输出错误

- Finding hashicorp/mysql versions matching ">= 1.5.*"...

Error: Failed to install providers

Could not find required providers,but found possible alternatives:

  hashicorp/mysql -> terraform-providers/mysql

If these suggestions look correct,upgrade your configuration with the
following commands:
    terraform 0.13upgrade .
    terraform 0.13upgrade ..\mysql-module-test\mysql_server


main.tf

provider "mysql" {
  alias = "create_users"

  endpoint = format("%s:3306",module.mysql_server.primary_fqdn)
  username = var.administrator_login
  password = var.administrator_password
}

versions.tf

# Configure terraform and azure provider
terraform {
  required_version = ">= 0.13.0"

  required_providers {
    azurerm = ">= 2.25.0"
    random  = ">= 2.2.0"
    mysql   = ">= 1.5"
  }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)