No description
  • Go 97.8%
  • Shell 1.8%
  • HCL 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Greyson Baker ffae1229d0
Merge pull request #2138 from hashicorp/TF-38845-display-of-example-titles-in-docgen
Tf 38845 display of example titles in docgen
2026-07-17 09:06:58 -05:00
.github Migrate resource_tfe_ssh_key to go-tfe v2 (#2110) 2026-07-15 16:40:58 -06:00
.release Compile the TFE provider for linux s390x 2026-06-26 16:53:26 -07:00
docs [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 3) (#1919) 2025-12-09 11:35:18 -08:00
examples Merge remote-tracking branch 'origin/main' into TF-38845-display-of-example-titles-in-docgen 2026-07-16 12:09:20 -05:00
internal comments for optional/computed attr fixes 2026-07-16 16:09:49 -04:00
META.d [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 3) (#1919) 2025-12-09 11:35:18 -08:00
scripts TF-38631-automated-validation-of-import-information-presence (#2136) 2026-07-15 14:41:22 -05:00
templates disinclude superfluous titles in templates 2026-07-13 14:39:13 -05:00
version Changelog and version callout updates 2026-07-10 10:45:33 -04:00
website/docs Remove changes to cdktf so that they will be regenerated properly during release 2026-07-16 15:30:16 -04:00
.copywrite.hcl Add copywrite headers and GH Action 2023-01-27 15:34:44 -06:00
.gitignore Tf 38377 automated validation of descriptions for presence (#2130) 2026-07-09 14:41:16 -05:00
.golangci.yml [COMPLIANCE] Add/Update Copyright Headers (#2054) 2026-05-11 17:48:32 -07:00
CHANGELOG.md changelog entries 2026-07-16 16:09:49 -04:00
GNUmakefile Add targetable docgen to terraform provider tfe (#2115) 2026-07-02 15:58:22 -05:00
go.mod Migrate resource_tfe_ssh_key to go-tfe v2 (#2110) 2026-07-15 16:40:58 -06:00
go.sum Migrate resource_tfe_ssh_key to go-tfe v2 (#2110) 2026-07-15 16:40:58 -06:00
LICENSE [COMPLIANCE] Update MPL 2.0 LICENSE 2022-10-12 20:45:00 +00:00
main.go [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 3) (#1919) 2025-12-09 11:35:18 -08:00
mkdocs.yml Nudge contributors to create new resources in Provider Framework 2024-01-12 11:47:14 -07:00
README.md Changelog and version callout updates 2026-07-10 10:45:33 -04:00
terraform-registry-manifest.json setting to just protocol 6 2025-08-18 10:28:17 -06:00

Terraform

HCP Terraform and Terraform Enterprise Provider

The official Terraform provider for HCP Terraform and Terraform Enterprise.

As Terraform Enterprise is a self-hosted distribution of HCP Terraform, this provider supports both Cloud and Enterprise use cases. In all/most documentation, the platform will always be stated as 'Terraform Enterprise' - but a feature will be explicitly noted as only supported in one or the other, if applicable (rare).

Note this provider is in beta and is subject to change (though it is generally quite stable). We will indicate any breaking changes by releasing new versions. Until the release of v1.0, any minor version changes will indicate possible breaking changes. Patch version changes will be used for both bugfixes and non-breaking changes.

Installation

Declare the provider in your configuration and terraform init will automatically fetch and install the provider for you from the Terraform Registry:

terraform {
  required_providers {
    tfe = {
      version = "~> 0.79.0"
    }
  }
}

For production use, you should constrain the acceptable provider versions via configuration (as above), to ensure that new versions with breaking changes will not be automatically installed by terraform init in the future. As this provider is still at version zero, you should constrain the acceptable provider versions on the minor version.

The above snippet using required_providers is for Terraform 0.13+; if you are using Terraform version 0.12, you can constrain by adding the version constraint to the provider block instead:

provider "tfe" {
  version = "~> 0.79.0"
  ...
}

Since v0.24.0, this provider requires Terraform >= 0.12

Since v0.70.0, this provider requires Terraform >= 1.0

For more information on provider installation and constraining provider versions, see the Provider Requirements documentation.

Usage

Create a user or team API token in HCP Terraform or Terraform Enterprise, and use the token in the provider configuration block:

provider "tfe" {
  hostname = var.hostname # Optional, for use with Terraform Enterprise. Defaults to app.terraform.io.
  token    = var.token
}

# Create an organization
resource "tfe_organization" "org" {
  # ...
}

There are several other ways to configure the authentication token, depending on your use case. For other methods, see the Authentication documentation

For more information on configuring providers in general, see the Provider Configuration documentation.

Development

We have developed some guidelines to help you learn more about compiling the provider, using it locally, and contributing suggested changes in the contributing guide.