Skip to content

Remove hyphen from Terraform Registry provider example #16

@Edeholland

Description

@Edeholland

Under the USE PROVIDERS button in the Terraform Registry, the following code block appears:

terraform {
  required_providers {
    better-uptime = {
      source = "BetterStackHQ/better-uptime"
      version = "0.3.6"
    }
  }
}

provider "better-uptime" {
  # Configuration options
}

This hyphen breaks Terraform init because better-uptime is not a known provider:

│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/betteruptime: provider registry registry.terraform.io does not have a provider named
│ registry.terraform.io/hashicorp/betteruptime
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules are currently depending
│ on hashicorp/betteruptime, run the following command:
│     terraform providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions