Using custom providers in Terraform

The RKE provider that I'd like to use is some versions behind. It seemed easy enough to update the dependency, but I struggled to get this custom RKE provider working without having to upload it somewhere. The documentation didn't seem to be obvious enough. After searching on Google, I found this issue on GitHub, which made it clear.

For me, the example meant:


terraform {
  required_providers {
    rke = {
      source = "my.local/marco/rke"
      version = "1.3.1"
Terraform providers
Directory structure from home