Which infrastructure as code tools fit air-gapped networks
A security or platform team that cannot let infrastructure as code runs reach the public internet can still shortlist OpenTofu, the Terraform CLI and self-managed Terraform Enterprise. OpenTofu and the Terraform CLI both have documented provider mirror workflows for isolated networks, and Terraform Enterprise has an airgapped installation mode. HCP Terraform is a HashiCorp cloud service by default, so it fits only if its agents run on your own network. The available documentation does not show a fully disconnected HCP Terraform run, so confirm in writing with HashiCorp whether agents need any outbound path to its services before you shortlist it. The HCP Terraform overview describes the default cloud run model, which is the baseline for that question.
Licensing separates these options more sharply than features do. OpenTofu is licensed under MPL-2.0 and is stewarded under the Linux Foundation. Terraform CLI 1.6.0 and later is under the Business Source License 1.1, which makes it not OSI open source. That license allows production use, including using Terraform for internal purposes within an organization, but it limits offering Terraform to third parties on a hosted or embedded basis in competition with IBM's paid versions. Each Terraform version converts to MPL 2.0 four years after it is published. HCP Terraform is a proprietary hosted service, and Terraform Enterprise is a commercial self-managed product, so both come with commercial terms that procurement and counsel should review.
Begin with the OpenTofu provider mirror documentation, which describes a local mirror for environments that cannot reach any service over the public internet. For Terraform CLI, terraform providers mirror downloads the providers your configuration needs, and it fetches platform-specific packages for the machine running the command by default, so build the mirror on the same operating system and architecture as your runners. An explicit installation method then limits provider lookups to that directory. OpenTofu wires its mirror through an oci_mirror block inside provider_installation. For Terraform Enterprise, expect to pre-install Docker, move a downloaded .airgap file across the boundary and re-host or load its images internally. Confirm that your change process can move those artifacts, and confirm that modules, state backends and any registry calls also resolve inside your network, since the mirror workflows described here cover providers.
How each tool fits an air-gapped network as documented
This table compares how each infrastructure as code option is documented to run without internet access, and what still reaches a connection or vendor service. Read the license column for terms and the third column for the documented air-gap path. The key takeaway is that the paths differ: OpenTofu and the Terraform CLI use provider mirrors, Terraform Enterprise documents an airgapped installer, and HCP Terraform needs agents for on-premises runs. The final four rows are items to confirm in your own environment, and none is a documented fact.
| Option | License | Fits the constraint as documented | What still needs a connection or vendor service |
|---|---|---|---|
| OpenTofu | MPL-2.0 | Documents a provider mirror configured through an oci_mirror block in provider_installation, aimed at environments with no public internet access. | A populated mirror inside the network, filled through a transfer path you confirm. |
| Terraform CLI | BUSL 1.1 for 1.6.0 and later (IBM licensor); the grant treats internal use as non-competitive | terraform providers mirror fetches the providers a configuration needs for isolated networks, and explicit installation methods restrict lookups to a local directory. | A mirror built on a connected host, since platform packages default to the machine running the command. |
| HCP Terraform | Commercial hosted service; pricing published by HashiCorp | Default cloud runs use HashiCorp infrastructure; agents are the documented on-premises path. | Confirm which HCP Terraform services agents still call, and the network paths they need. |
| Terraform Enterprise | Commercial, self-managed product; confirm license terms with HashiCorp | Documents an airgapped installation mode that needs pre-installed Docker and a downloaded .airgap file. | Images are fetched on a connected system, then re-hosted internally or loaded onto the host. |
| Module sources | Check each module's own license | Confirm whether modules can come from a private registry or Git host inside your network. | Confirm each source's host, its update path and whether it resolves offline. |
| State backends | Not a license question; confirm per tool | Confirm which backend types each tool can use entirely inside the network. | Confirm where state is stored, who holds encryption keys and what locking needs. |
| Transfer method | Not applicable | Confirm how mirrors, images and .airgap bundles cross the boundary and who scans them. | Confirm approval, malware scanning and signature checks for each transfer with your security team. |
| Vendor services | Confirm terms per product | Confirm which license checks, telemetry or update calls each product makes in your environment. | Confirm the support, subscription and update channels you depend on, and how they work offline. |
What an air-gapped network asks of infrastructure as code tools
Any infrastructure as code tool in an air-gapped network has to get its providers and installer images from inside that network, because a default install step that pulls from a public registry will fail or stall there. The provider source must be local before the first run. OpenTofu's provider mirror documentation describes this through an oci_mirror block inside provider_installation, with a repository_template and include and exclude arguments that control which providers the mirror serves. The same page says a local mirror of providers can also reduce data transfer costs, which matters when transfer windows into the enclave are limited. Scope the mirror to the providers and versions your configurations actually use, so each transfer stays small and reviewable.
A run must not depend on a public registry at any point after the mirror is in place, so the configuration has to point the CLI only at local sources. HashiCorp's terraform providers mirror command downloads the providers required by the current configuration into a directory for use on an isolated network, and an explicit installation method can limit Terraform to that local filesystem directory. Running the command again on an existing mirror directory adds new packages, which makes it the update step. By default it fetches packages for the platform of the machine that runs it, so check every operating system and architecture your build hosts and operators use before the transfer. A package missing for one platform only fails when someone runs on that platform. Updates then cross the boundary as a controlled transfer: the mirror is built on the connected side, reviewed, moved in and tested before any production run picks it up.
Installer images follow the same rule. Terraform Enterprise, a separate self-managed product from HashiCorp, has an airgap installation mode that needs Docker installed beforehand and a downloaded .airgap file. Its network access documentation says air-gapped installs do not need ongoing access to HashiCorp registries, and that images are retrieved on a connected system and then re-hosted internally or loaded onto the host, so the transfer is part of the install plan. HCP Terraform runs on HashiCorp's cloud infrastructure by default, and its agents can run Terraform on your own isolated or on-premises infrastructure as of December 2026. Confirm with the vendor what an agent still contacts, since these pages cover providers and installer images only. Modules, state backends, plugins for other tools and CLI update channels are dependencies that need their own check in your environment.
How provider updates move into the restricted network
This illustrative diagram starts on a connected build system, where a provider mirror is exported for the providers the configuration needs. The export then passes through a transfer step that the client's security team approves and controls. That transfer step is the one to confirm in your environment, because how content crosses the network boundary depends on your own controls. Inside the restricted network, the local mirror directory is the source Terraform or OpenTofu reads. An explicit installation method limits provider lookup to that directory, so confirm that your team can trace which packages entered and when the mirror is refreshed.
Illustrative flow: the transfer step is the part to confirm with your environment.
Four options under the constraint, with their licenses
Each option below differs in its license or delivery model, and both change what you can run inside a closed network. Read the license before the feature list, because it decides whether you can sell services built on the tool and whether a vendor connection is required. Each card names the condition under which that option fits and when it is the wrong pick.
OpenTofu under MPL 2.0
OpenTofu is licensed under the Mozilla Public License 2.0 and runs under Linux Foundation stewardship. It was accepted to the CNCF Sandbox on April 23, 2025. For a closed network, its provider mirror can serve providers from inside your network through an oci_mirror block in provider_installation, so check that every provider your configuration uses is mirrored. It fits teams that can host that mirror and run the CLI themselves. It is the wrong pick if you expect a vendor to operate the state and runs for you.
Terraform CLI under BSL 1.1
Versions 1.6.0 and later are licensed under the Business Source License 1.1, with IBM named as licensor, so the license is not OSI open source. Internal use is not counted as a competitive offering. Offering Terraform to third parties on a paid basis, including paid support, may be restricted where it significantly overlaps IBM's paid versions. Each version converts to MPL 2.0 four years after publication. Confirm with counsel before you sell Terraform-based services. It is the wrong pick if your policy requires OSI-approved licenses or your business resells Terraform-based services.
HCP Terraform with on-network agents
HCP Terraform is a proprietary hosted service whose control plane HashiCorp operates. By default, it runs Terraform on disposable virtual machines in HashiCorp's own cloud. Its agents on your own infrastructure can run Terraform on your isolated, private or on-premises network, which is the configuration to evaluate for a closed network. Even then, confirm what data and metadata still reach the vendor, and how the workflow behaves when the network has no outbound path. It is the wrong pick if your policy bars any vendor-operated control plane, even with agents.
HCP Terraform overviewTerraform Enterprise airgapped install
Terraform Enterprise is a separate commercial product that you run yourself, distinct from the Terraform CLI. Its airgapped installation mode needs a pre-installed Docker and a downloaded .airgap file. HashiCorp documents that air-gapped installs need no ongoing access to its registries, with images retrieved on a connected system and then re-hosted internally or loaded onto the host. Pricing is custom, so ask for it in writing along with the upgrade and image refresh process. It is the wrong pick if you want a no-cost path or lack the staff to operate another self-managed platform.
Network access docsRunning each option under the constraint day to day
OpenTofu gives the team the most control over the install path. Its provider mirror documentation says a provider mirror can help run OpenTofu in air-gapped environments, meaning environments that cannot reach any service over the public internet, and the provider mirror page walks through the setup. The project is licensed under the Mozilla Public License 2.0 and sits under Linux Foundation stewardship, so the license terms are open and any paid support is a separate decision to confirm.
- Mirror configuration: Declare an
oci_mirrorblock insideprovider_installation, with arepository_templatethat points the CLI at your internal provider source. - Scope control: Use the
includeandexcludearguments to limit which providers the mirror serves, so the approved list stays small and easy to review. - Transfer cost: The provider mirror page notes that a local mirror can reduce data transfer costs, which matters when providers cross a metered or slow link.
- Monitoring: Track OpenTofu's releases and the provider versions your configurations pin, then re-sync the mirror each time you approve a new version.
- Governance: The project was accepted to the CNCF at Sandbox maturity on April 23, 2025, so ask whether your assurance process accepts that maturity level.
Confirm the repository_template syntax, the release cadence and the monitoring expectations against OpenTofu's current documentation before you build the mirror pipeline.
Terraform CLI supports the same air-gapped pattern through the terraform providers mirror command, which downloads the providers the current configuration needs into a directory for use on an isolated network. Versions 1.6.0 and later are licensed under the Business Source License 1.1, with IBM named as licensor, so the license terms are the main decision point for this option. Review the providers mirror command page before you script the workflow.
- Mirror run: Execute
terraform providers mirroragainst the configuration on a connected machine, then move the output directory to the isolated network. - Explicit installation method: Configure the CLI so it consults only a local filesystem directory for providers, which keeps isolated runners from reaching a public registry.
- Re-runs: Running the command again on an existing directory updates it with new packages, so the team must decide how older provider versions are kept or removed.
- Platform packages: By default the command fetches packages for the machine that runs it, so run it on each operating system and architecture your runners use.
- License terms: The grant allows internal use but not hosted or embedded offerings to third parties that compete with IBM's paid versions, and each version converts to MPL 2.0 four years after publication. Have counsel confirm the position if you resell or host Terraform for others.
Confirm the license position with counsel and check the current mirror documentation before you automate refreshes, since the team must monitor both provider updates and license terms.
HCP Terraform runs Terraform on disposable virtual machines in HashiCorp's own cloud by default. HCP Terraform agents move the execution of runs onto your isolated, private or on-premises infrastructure, while HashiCorp's service continues to provide the workflow platform. Read the HCP Terraform overview to see which parts of the workflow remain with the service.
- Where work runs: Plan and apply execution happens on your agent hosts, but workflow management still depends on HCP Terraform, so confirm which data and metadata leave your network.
- Subscription: HCP Terraform is a paid service. The HashiCorp pricing page lists Essentials at $0.10 per resource per month, Standard at $0.47 and Premium at $0.99, with Terraform Enterprise and HCP Terraform Europe custom priced. Ask HashiCorp how it counts resources.
- Connectivity: Ask which endpoints the agent must reach, how it authenticates, and whether it can operate with no outbound path at all.
- Updates: Confirm how agent versions reach an isolated host, how they are verified, and how long older agent versions remain supported.
- Monitoring: Track agent health and version drift on each host, and alert on lost connectivity to HCP Terraform, since that connection governs whether runs can start.
Get the connectivity, update and pricing answers in writing from HashiCorp before you design the agent network, and confirm them against the current agent documentation.
Terraform Enterprise is HashiCorp's self-managed product, separate from HCP Terraform, and it runs inside your environment. Its air-gapped installation mode needs Docker installed on the host and a downloaded .airgap file. HashiCorp's network documentation describes retrieving images on a connected system and then re-hosting them internally or loading them onto the host, and HashiCorp says air-gapped installs do not need ongoing access to its registries. Start with the network access page before you size the host.
- Install path: Retrieve images on a connected system, transfer them through your approved media, then re-host them internally or load them onto the host. The automated installer documentation covers scripted installs.
- Prerequisites: Install Docker on the host ahead of time and stage the
.airgapfile with the release images, so the install does not depend on a live pull. - Subscription: Terraform Enterprise is custom priced. Ask what the quote covers, how seats or resources are counted, and what support and renewal terms apply.
- Upgrades: Each release requires a new image set to be retrieved, transferred and loaded, so schedule transfer windows and keep the prior release available for rollback.
- Monitoring: Track HashiCorp release notes, verify checksums on each transfer, watch host health and watch license expiry dates.
Ask HashiCorp to confirm the image list, host requirements, upgrade procedure and release cadence in writing, and verify monitoring expectations against its current documentation.
What still needs a connection or a vendor service
Air-gapped infrastructure as code still depends on transfers that your security team must approve and document. The largest is the provider set. Build a mirror on a connected system with terraform providers mirror, or for OpenTofu, configure an oci_mirror block inside provider_installation that points at an internal registry through a repository_template, as described in the OpenTofu provider mirror documentation. Platform-specific packages are fetched for the machine running the command by default, so mirror every operating system and architecture your runners use, and pin an explicit installation method so Terraform reads only the local directory. Module sources, the state backend and any private module registry also need internal hosts on the approved list. Ask your security team to approve the transfer path, the media, and who signs off on each import into the network.
Two vendor services change the picture. HCP Terraform runs its control plane in HashiCorp's cloud, with runs on disposable virtual machines there by default, and remote state, the private registry and secure variables stored with the service. HashiCorp documents agents that run Terraform on your own isolated or on-premises infrastructure, so confirm in writing which state, registry and run data stay inside your network. The HashiCorp pricing page lists HCP Terraform Essentials at $0.10 per resource per month, Standard at $0.47 and Premium at $0.99, so resource count drives the recurring cost. Terraform Enterprise is self-managed and priced on custom terms. Its air-gapped installation needs Docker on the host and a downloaded .airgap file, with images retrieved on a connected system and re-hosted internally. Ask the vendor how licenses are delivered and renewed, then give them your node count, resource volume and network zones so the quote matches the agreed setup.
Setting up an OpenTofu provider mirror for an isolated network
This sequence produces a local provider mirror that an OpenTofu configuration can read without reaching the public internet. It runs from choosing the providers and platforms the network needs, through staging the mirror in a registry the restricted network can reach, to a tested plan and a repeatable refresh cycle. Each step names who acts and what check confirms it is done.
Choose providers and platforms for the network
The network team and the platform owner agree on the list of providers, versions and target platforms that the isolated network needs, and record that list in writing. Limit the content with the include and exclude arguments of the oci_mirror block, so the mirror holds only what approved configurations use. Confirm each provider namespace with your security team before the list is frozen. Done when the list is signed off, every provider in the working configuration appears on it, and each target operating system and architecture for the hosts that run OpenTofu is listed.
Stage the mirror in an internal registry
The platform team configures an oci_mirror block with a repository_template inside provider_installation, so that providers resolve to a registry path inside the restricted network. The registry must sit inside the client boundary and be reachable from every host that runs OpenTofu, so confirm that route with the team that operates the registry. Check the repository_template pattern and the include and exclude filters against the OpenTofu provider mirror documentation for the version in use. Done when a test host inside the restricted network can list the expected provider paths in the registry.
Move approved content across the boundary
Transfer the approved provider content through the client's own controlled process, such as a reviewed media transfer or an existing cross-domain procedure. Record who approved each package, when it moved and which list version it matches. The transfer must not give the restricted network a route to the internet. Ask your security and records owners which transfer method and approval steps the organization already requires, since that policy belongs to the client. Done when the transfer record matches the list signed off in the first step and the security owner has accepted the transfer in writing.
Point configuration at the internal mirror
Update the working configuration so that OpenTofu resolves providers only from the internal mirror, and confirm that no fallback path reaches a public registry. Run a plan on a host with no public internet route, such as one whose egress is blocked at the network layer, and check that each provider initializes from the mirror. Confirm the provider_installation settings against the OpenTofu documentation for the release you run. Done when the plan completes on the isolated host, the initialization output names only the internal mirror, and a deliberate test with the route blocked fails as expected.
Repeat the export when providers change
When a provider version, a target platform or a namespace changes, repeat the export, transfer and test cycle from the first step through the fourth, so the mirror does not drift from the approved list. Name one owner for the connected export, one for the transfer approval and one for the isolated-network plan test, and confirm those owners in writing before the first cycle. Terraform's equivalent is the
terraform providers mirrorcommand plus an explicit installation method, and exact command syntax must be taken from the vendor documentation for the version in use. Done when the owners are recorded in the runbook and each cycle leaves a dated record of every handoff.
Questions buyers ask before hiring help for an air-gapped IaC setup
How much effort does an air-gapped IaC setup take, and what raises it?
Effort rises with the number of providers and platforms you mirror, how often packages cross the boundary, and whether modules and state live inside the network. Each provider and platform combination must be downloaded on a connected system (for Terraform, terraform providers mirror does this), moved through your approved transfer path and served from an internal host. Keeping modules and state inside adds backup, access control and upgrade work that you own. For Terraform Enterprise, each self-managed host adds its own Docker setup, image load and upgrade cycle. Build a written inventory of providers, module sources, state locations and hosts before asking for a scope, because those counts drive the quote.
Can a platform team set up air-gapped Terraform without outside help?
Yes, a platform team can do it alone if it already runs Terraform or OpenTofu in production and has people comfortable with package mirroring, private registries and Linux hosts. The skills that matter most are provider and module version control, container runtime operation for Terraform Enterprise, certificate and DNS handling inside a closed network, and state backend administration. The hardest gaps usually show up in upgrade testing and in documenting exact versions for auditors, because offline upgrades need the same care as the first install. Teams short on one of these skills can bring in outside help for the first build, keep the runbooks and run upgrades in-house, or buy ongoing support as a retainer. Whatever the arrangement, ask for the handover of runbooks and access in the written scope.
What do we need to provide before an IaC partner starts work?
Before work starts, you need security approval for each transfer across the boundary, a registry host inside the network, and Docker hosts if you plan to run Terraform Enterprise. You also need to decide the state backend, since it determines where state files, locks and backups live and who can read them. The last input is access to documentation for the exact versions you will run, so mirrored providers, modules and product images match what your teams and auditors review. Put the transfer approval steps in the scope, because your security team's review cycle can set the schedule more than the technical work does. Confirm each item in writing so that the scope, the deliverables and your responsibilities sit in one document.
Does HCP Terraform work without internet access in a closed network?
The documentation does not describe a fully disconnected HCP Terraform setup, so confirm agent connectivity with HashiCorp before you scope anything. HashiCorp's HCP Terraform overview says HCP Terraform runs Terraform on disposable virtual machines in its own cloud by default, and that HCP Terraform agents can run Terraform on your own isolated, private or on-premises infrastructure. An agent still has to reach the service, so the questions are what that connection requires, which traffic leaves your network and whether your security team accepts it. If the answer is no, the path is Terraform or OpenTofu with self-hosted state and modules instead. Get the agent's connectivity requirements in writing before you decide.
What does switching from Terraform to OpenTofu cost in practice?
The main cost is your team's time for testing and change control, because OpenTofu describes itself as a drop-in replacement that keeps existing workflows and configurations. Treat that description as a claim to test on your own code. License terms differ: Terraform's Business Source License 1.1 allows internal production use but limits offering Terraform to third parties as a competing product, while OpenTofu is licensed under MPL 2.0 and stewarded under the Linux Foundation. Plan a pilot on a copy of a representative workspace, compare state after a plan and apply, review provider lock files, and write rollback steps into your change process. Ask your legal team to read the Terraform LICENSE file against your use case, and ask any partner to list the migration as its own line in the written scope.
How long does the air-gapped IaC work take from start to finish?
The timeline follows the written scope and your transfer approval cycle, so no duration can be stated before both are agreed. The scope drivers are the ones covered in the first question: provider and platform count, number of transfer cycles, where modules and state live, and how many Terraform Enterprise hosts you run. Security review of each transfer can take longer than the build itself, so start that approval early and agree its cadence in advance. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen publishes no price list, so ask for a quote built from that written scope and check whether it covers upgrades, retainers or hand-over training.
How DeployOpen helps run infrastructure as code in restricted networks
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For infrastructure as code in restricted networks, that means setting up the provider sources, state location and review path your chosen tool needs before any change reaches production, then handing the setup over with documentation.
How we scope
- Written scope names the IaC tool, its version, and the networks where plan and apply will run.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
- Scope lists every provider and module source, and marks any vendor service that still needs a connection.
How we build
- Stand up a provider mirror and point OpenTofu at it with an explicit installation configuration.
- Mirror every platform your runners use, since the Terraform mirror command fetches only the local machine's packages by default.
- Test the pipeline itself, including credential handling, state access and who can approve a plan.
How we hand over
- Documentation covers the mirror update procedure, so the team can refresh packages when new provider versions are needed.
- Runbooks cover the offline transfer path, including how mirror content is checked before it enters the restricted network.
- Your team receives the configuration, pipeline definitions and access model in its own repositories and infrastructure.
How we support
- Ongoing support is available as a retainer for upgrades, provider mirror refreshes and changes to the pipeline.
- Upgrades of OpenTofu and its mirror are planned against the release notes before they reach restricted environments.
- Continuous testing can be added as a retainer so changes to modules and providers are checked before apply.

