Terraform Enterprise architecture
What Terraform Enterprise adds
Terraform Enterprise (TFE) is the self-hosted distribution of HCP Terraform. Instead of the vendor operating the hosted application, your organization operates an installation on supported infrastructure. Both products coordinate Terraform runs and store information about workspaces, but the service operating model differs. Running Terraform CLI on a laptop is not the same thing as deploying TFE. A self-hosted installation can address network or organizational requirements, at the cost of operating more infrastructure. Start by drawing a boundary around the platform itself and the workloads it manages.
Fictional self-hosted platform (conceptual active-active design)Users / VCS -> TLS entry point -> TFE application replicas -> external PostgreSQL -> external object storage -> external RedisApproved execution environment -> private provider endpointsSeparate monitoring and protected recovery storageThe arrows show conceptual dependencies, not firewall rules or a supported deployment manifest. A failure of the platform may prevent new changes while previously provisioned workloads continue serving traffic. Conversely a healthy platform does not prove that the workloads are healthy.
Choose a storage and scaling model
An operational mode determines where application data is kept. Current deployment documentation describes disk, external and active-active options, with runtime-specific restrictions; Kubernetes has its own configuration guidance. External services separate persistent database and object data from the application host. Active-active uses external coordination storage in addition to the database and object storage. Do not assume the same mode is supported by every runtime. The following comparison is a decision aid, not an installation recipe.
disk: local persistent storage; host/storage recovery mattersexternal: external database and object storage; application capacity still mattersactive-active: multiple application instances possible; external coordination dependencies matterChoose based on supported runtime, availability targets, operational skills and restoration capability. Multiple replicas do not eliminate shared dependency failures. A database replica is not a historical backup; erroneous writes may replicate.
Separate platform and execution responsibilities
An operator maintains TLS, DNS, access, capacity, backups, upgrades, monitoring and platform dependencies. A workload team owns configuration, tests, provider permissions, approval and workload health. Execution may be queued when worker capacity is exhausted; a queued plan is not evidence that the infrastructure provider is unavailable. Private execution agents can access approved private endpoints if routing, DNS, identity and pool scope are correctly configured. An agent is a process that executes workload-related code, so isolate it from unrelated environments. Do not assume a plan and apply run on the same worker.
Plan capacity using a fictional queue
A team has six independent ready jobs, each taking five minutes, and two execution slots. Under an idealized model with no retries, setup delays or workspace serialization, three waves are required.
wave 1: jobs A, B (0–5 minutes)wave 2: jobs C, D (5–10 minutes)wave 3: jobs E, F (10–15 minutes)This is an illustrative lower bound, not an entitlement or a measured TFE throughput claim. Real concurrency also depends on configured worker capacity, workspace run rules, dependencies, service configuration and licensing. Measure queue wait separately from execution duration to locate bottlenecks.
Treat releases and licenses as deployment inputs
Before installation, record the TFE release, supported runtime, dependency versions, license terms, storage and networking prerequisites, and support status. The Terraform CLI version selected for a workspace is not the TFE release. Consult the release notes and the matching deployment documentation. An installation or upgrade requires an appropriate license; do not assume hosted subscription features or every deployment option are available. An expired license can also interfere with image access in some installation workflows.
Release readiness worksheet (example fields)TFE release: not selectedRuntime and version: not selectedDatabase / object / coordination storage compatibility: pendingLicense and support: pendingRestore rehearsal: pendingDecision: HOLD installationThe course deliberately does not choose or install a TFE release. The provisional CLI version inherited from earlier chapters is not a TFE compatibility claim.
Practice and next step
Draw a topology for a fictional private platform. Label the persistent data, network entry point, execution boundary and owners. Explain which components must be recovered before accepting new production runs. Then move to governance and recovery, where access and failure decisions are evaluated. Reference: terraform-concept-terraform-enterprise-architecture. Official reading: https://developer.hashicorp.com/terraform/enterprise/deploy and https://developer.hashicorp.com/terraform/enterprise/deploy/configuration/storage/configure-mode.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Terraform Enterprise architecture — knowledge check
Review enterprise deployment and governance decisions.
Who operates the self-hosted TFE application?
What does active-active require in the documented model?
What is a queued run evidence of?
Six equal jobs with two slots and five minutes per job take how long in the idealized example?
Which version determines TFE deployment support?