There is slight chance that during getting started with Digital Ocean tutorial you encountered the following error
$ terraform init
Initializing the backend...
Initializing provider plugins...
- Finding latest version of hashicorp/digitalocean...
╷
│ Error: Failed to query available provider packages
The solution to that is deliver required_providers section into your
main.tf
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = ">= 2.4.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.0.0"
}
}
}
Now the
terraform init
command should be executed successfully
Brak komentarzy:
Prześlij komentarz