I am receiving an error unsupported block type on required_provider {
terraform {
required_provider {
docker = {
source = “kreuzwerker/docker”
version = “~> 1.1.4”
}
}
}
provider “docker” {}
I am receiving an error unsupported block type on required_provider {
terraform {
required_provider {
docker = {
source = “kreuzwerker/docker”
version = “~> 1.1.4”
}
}
}
provider “docker” {}
The “Use Provider” template of the docs work as expected.
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = "2.16.0"
}
}
}
provider "docker" {
# Configuration options
}
Which terraform version are you using? It should >= 0.13 and provider version 2.x.