[英]How to add providers in terraform aws?
This is the error I'm getting:这是我得到的错误:
Failed to query available provider packages
Could not retrieve the list of available versions for provider
hashicorp/mysql: provider registry registry.terraform.io does not have a
provider named registry.terraform.io/hashicorp/mysql
For terraform > 0.13 you need to add a required_providers snippet for any un-official provider (un-official means not owned by HashiCorp and not part of their registry).对于 terraform > 0.13,您需要为任何非官方提供者添加 required_providers 片段(非官方意味着不属于 HashiCorp 并且不属于其注册表的一部分)。 There was one supported by HashiCorp but it is discontinued (you could potentially use it if you downgrade to TF12). HashiCorp 支持其中一个,但已停产(如果您降级到 TF12,您可能会使用它)。
If you are aware of a community provided one a code snippet similar to the one for docker below should suffice:如果您知道社区提供了一个类似于 docker 的代码片段,那么下面的代码片段就足够了:
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
}
}
}
where in source you will give a link to the provider source repo/registry.在源代码中,您将提供指向提供程序源存储库/注册表的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.