Problem
When executing Terraform configuration code that includes the use of the tfe
provider, you encounter the error below during the plan phase:
Error: port portion contains non-digit characters
with provider["registry.terraform.io/hashicorp/tfe"]
on XXX.tf line X, in provider "tfe":
provider "tfe" {
Cause
- This occurs when the value for the
hostname
argument, orTFE_HOSTNAME
environment variable set for use by thetfe
provider, contains the scheme of an address, such ashttp://
orhttps://
Solution:
-
Remove the scheme from the address that's set for the
hostname
argument, orTFE_HOSTNAME
environment variable.- Example
app.terraform.io
ortfe.domain.com
- Example