当我运行terraform plan或terraform apply时,输出包括以下内容:
Initializing the backend...
Initializing provider plugins...
- Using previously-installed hashicorp/azurerm v2.36.0
- Using previously-installed hashicorp/random v3.0.0
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, we recommend adding version constraints in a required_providers block
in your configuration, with the constraint strings suggested below.
* hashicorp/random: version = "~> 3.0.0"如何在我的配置中为hashicorp/随机指定版本?
发布于 2020-11-25 20:09:24
只需在provider块中指定它:
provider "hashicorp/random" {
version = "~> 3.0.0"
}https://stackoverflow.com/questions/65011974
复制相似问题