我的根目录中的provider.tf中有以下内容
\nterraform {\n required_version = ">= 1.0.5"\n required_providers {\n azurerm = {\n source = "hashicorp/azurerm"\n version = "= 3.8.0"\n }\n mongodbatlas = {\n source = "mongodb/mongodbatlas"\n }\n }\n}\n
Run Code Online (Sandbox Code Playgroud)\nterraform init
我在阶段中遇到以下错误
Error: Failed to query available provider packages\n\xe2\x94\x82 \n\xe2\x94\x82 Could not retrieve the list of available versions for provider\n\xe2\x94\x82 hashicorp/mongodbatlas: provider registry registry.terraform.io does not\n\xe2\x94\x82 have a provider named registry.terraform.io/hashicorp/mongodbatlas\n\xe2\x94\x82 \n\xe2\x94\x82 Did you intend to use mongodb/mongodbatlas? If so, you must specify that\n\xe2\x94\x82 source address in each …
Run Code Online (Sandbox Code Playgroud)