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
hostnameargument, orTFE_HOSTNAMEenvironment variable set for use by thetfeprovider, contains the scheme of an address, such ashttp://orhttps://
Solution:
-
Remove the scheme from the address that's set for the
hostnameargument, orTFE_HOSTNAMEenvironment variable.- Example
app.terraform.ioortfe.domain.com
- Example