In Terraform 0.13, providers are fetched from the Terraform registry. More details here.
The Packet provider was included in the Hashicorp registry, used prior to TF 0.13 and can be access with legacy syntax. The Equinix Metal provider was not released until after that transition.
It is possible to use the Equinix Metal provider with Terraform 0.12 with a few additional steps:
- Download the provider for your architecture from https://github.com/equinix/terraform-provider-metal/releases
- Extract the provider and copy the binary into
terraform.d/plugins/$ARCH
(darwin_adm64, for example) - Include a
terraform
stanza and configure theprovider
resource with anauth_token
# main.tf (example) terraform { required_providers { metal = "~> 1.0" } } variable "token" {} provider "metal" { auth_token = var.token } data "metal_operating_system" "example" { distro = "ubuntu" version = "18.04" }
terraform init
terraform apply
See https://www.terraform.io/docs/extend/how-terraform-works.html#selecting-plugins for more details on using plugins.