Best infrastructure as code tools for managed service providers

OpenTofu, HCP Terraform and Terraform as documented differ on how they separate client work and what the license allows for paid service. Use this page to see which option fits a multi-client model and what to confirm before you sign.

On this page

Which infrastructure as code tools for managed service providers fit multi-client work

An MSP that runs infrastructure for many paying clients needs its infrastructure as code tool to keep three things apart: each client's state, each client's access and each client's licensing terms. Client state means separate state backends so one client's plan never reads or writes another client's resources. Access means separate credentials and roles per client, each with a named owner. Licensing means a written answer on whether the tool may run for paid client work at all. None of the options below has an MSP programme that we found, so the choice depends on the contract and the license read as much as on features. Ask each vendor to confirm these three points in writing before you pick one.

OpenTofu is a command-line tool released under MPL-2.0 and is open source. The pages we reviewed document no multi-tenancy or MSP programme, so it fits MSPs that will design their own client separation: one state backend per client, a credential set per client and a pipeline that runs each client's plans only against that client's workspace. Its website describes it as a drop-in replacement for Terraform that preserves existing workflows and configurations. HCP Terraform is hosted by HashiCorp and is not OSI open source. Its organizations are collections of projects, and a user can belong to several organizations and switch between them. It fits MSPs that confirm in their contract that each client maps to its own organization or project, and that the data location meets each client's requirements.

Terraform as documented is licensed under the Business Source License 1.1, with IBM named as licensor for version 1.6.0 and later, and it is not OSI open source. The license allows production use and states that running Terraform for internal purposes within an organization is not a competitive offering. The risk sits in the definition of a competitive offering: a product offered to third parties on a paid basis, including through paid support, that significantly overlaps with the capabilities of IBM's paid versions. Managed Terraform sold to clients may fall inside that definition, so do not use it for paid client work until counsel has read the definition against your service. The change date converts each version to MPL 2.0 four years after publication, which helps planning but does not cover versions still inside that window.

How each option fits client separation as documented, and what still needs confirming

This table compares how OpenTofu, HCP Terraform and Terraform as documented handle separation between client environments, and what each still needs from a hosted connection, vendor service or contract. Read the middle column for documented features and the right column as a checklist before any client design is agreed. The main takeaway is that OpenTofu separates clients through state backend layout, HCP Terraform through organizations and projects, and Terraform's license makes delivering managed service to clients a question for counsel.

OptionHow it fits multi-client work as documentedWhat still needs a hosted connection, vendor service or contract confirmation
OpenTofuDocuments S3, azurerm and kubernetes state backends, which let you keep each client's state in a separate bucket, container or namespace.No multi-tenancy or MSP programme is documented, so confirm access separation and audit logging in your own setup.
HCP TerraformOrganizations hold projects, users can switch between several organizations, and projects group workspaces for access and settings.Confirm data location, the Europe environment and any self-hosted agents with HashiCorp, since these depend on a hosted connection or contract.
Terraform as documentedInternal use within an organization is documented as not a competitive offering, while paid third-party offerings that overlap IBM's paid versions are.Confirm with counsel or IBM whether a managed service for clients counts as a competitive offering before you deliver it.
All three toolsState, variables and runner credentials shape client separation in practice, so keep each client's secrets and state apart.Confirm per-client state, variable and runner access in your environment, because a documented MSP model was not found for these tools.

What separating client work in infrastructure as code demands of a tool

An MSP needs four things from an infrastructure as code tool before the first module is written: isolated state for each client, access controls that stop one client's operators from changing another client's workspace, separate variables and secrets for each client, and a licensing model that matches how the MSP counts and bills resources. The tool supplies only part of this. The MSP designs the state backends, roles, runners and naming, and documented features such as state backends, organizations and projects are inputs to that design that do not finish it on their own. Treat any feature list as a starting point for a written isolation design, reviewed by your security team before the first client goes live.

State separation is the first design decision. With OpenTofu, each client's state usually sits in its own location, such as a dedicated bucket or container, and the OpenTofu S3 backend documentation shows the settings that point a configuration at one. Confirm that each client's runner holds credentials that can read and write only that client's state path, because one shared backend credential undoes the separation. In HCP Terraform, projects group workspaces for access and settings, and an organization is a collection of projects that a user can switch between if they belong to several. Ask the vendor how team permissions are scoped at project and workspace level, who can read variables set on a workspace, and whether an operator can be granted one client's workspace without seeing the others. Test those answers with a non-admin account before you commit.

Licensing sets the cost of every client you add. HashiCorp's pricing page lists HCP Terraform Essentials at $0.10 per resource per month, Standard at $0.47 and Premium at $0.99, with Terraform Enterprise and HCP Terraform Europe at custom pricing. Terraform itself is under the Business Source License 1.1, which permits internal use, but its definition of a competitive offering covers products offered to third parties on a paid basis, including paid support, so a managed service built on it needs a legal reading before the first contract. OpenTofu is MPL-2.0 software, so its licensing question moves to any paid support or hosted service you add. Before you sign, ask each vendor: how it counts a billable resource, whether idle workspaces are billed, whether client resources can be billed directly to each client, whether it runs an MSP program, and how its license applies when you run the tool for third parties.

Infrastructure as code tools for managed service providers: three options and their terms

Three infrastructure as code options reach the shortlist for managed service providers, and their license terms decide as much as their syntax. Each one settles who can run the tool, where state and organizations live and what a provider may offer its clients. The cards below start with the terms and then test each option against tenancy design. Read the terms first, because the tenancy model depends on them.

OpenTofu under open governance

OpenTofu is a command-line tool released under the MPL-2.0 license. Its website describes it as a drop-in replacement for Terraform that preserves existing workflows and configurations, and the Linux Foundation stewards the project. It was accepted to the CNCF Sandbox on April 23, 2025. The provider builds its own tenancy, because the documentation reviewed for this page describes no multi-tenancy or MSP programme. Client separation, state layout and access control become the provider's design work, so isolate each client's state from the start. This fits when the MSP will build its own tenancy and wants no vendor contract in the path.

OpenTofu GitHub repository

HCP Terraform as a hosted service

HCP Terraform is hosted by HashiCorp and organized around organizations, which hold collections of projects. A user can belong to several organizations and switch between them, which lets a provider separate its own operations from client work. HCP Europe is a separate environment, with its organizations, projects and workspaces kept apart from other regions, so confirm the region first. No MSP programme was found. Remote state and remote runs are part of the hosted service, so the data location decision sits in the contract. This fits when the contract and data location allow it, and the provider should ask for those terms in writing.

HCP Terraform organizations

Terraform under the Business Source License

IBM is the licensor of Terraform, which carries the Business Source License 1.1 from version 1.6.0 onward. The grant permits production use, and its wording states that hosting or using Terraform for internal purposes within an organization is not a competitive offering. Paid third-party offerings need review. The license defines a competitive offering as a product sold to third parties, including through paid support, that significantly overlaps IBM's paid versions. Counsel should map any managed service against that definition. Each version converts to MPL 2.0 four years after publication. This fits a provider running Terraform for its own estate, where the internal use wording is clearest.

How client state, workspaces and runners stay apart in an MSP setup

This illustrative diagram starts at the MSP operator console, which selects a client. On the hosted path, the client's HCP Terraform organization holds a project and a workspace, and the workspace dispatches runs to a self-hosted agent inside that client's cloud account. The agent applies changes to the client's resources and reads and writes that client's state backend. A second client's OpenTofu runner writes to a state backend in its own account, so no state is shared between clients. Before you adopt this layout, confirm that each client's organization boundary, state backend and agent credentials match what the contract and your change process require.

Illustrative layout of client state, workspaces and runners.

What running each option for several clients involves day to day

With OpenTofu, your MSP owns the whole toolchain. The CLI comes from the project's GitHub releases page, so your team chooses each version, pins it and records how it was verified before it reaches a client. OpenTofu is released under MPL-2.0 and the license carries no fee, so the cost you plan for is engineering time for state, pipelines and upgrades, and most of that time recurs.

  • Installs and updates: Pin one CLI version per client group, test each upgrade in a non-production workspace, and bake the pinned binary into CI runner images so every pipeline runs the same version.
  • State backends: Your team provisions and runs state storage, for example with the S3 backend documentation as a reference, and sets encryption, locking and per-client access for each backend.
  • Licensing: MPL-2.0 carries no fee, but if your engineers modify OpenTofu source or redistribute it, ask counsel to confirm what the license requires of you.
  • Monitoring and access review: The reviewed documentation describes no multi-tenancy or MSP programme, so client separation depends on your state paths, credentials and runner isolation. Review those on a fixed schedule and keep the record.

Before onboarding a client, confirm which OpenTofu version it will run, who receives release notices, and where its state credentials are stored.

What the Terraform license and per-resource pricing mean for a service provider

For a managed service provider, the license question is narrower than whether Terraform is open source. Terraform is licensed under the Business Source License 1.1 with IBM named as licensor, and the license states that hosting or using Terraform for internal purposes within an organization is not a competitive offering. The test that matters is whether you offer Terraform to third parties on a paid basis, including through paid support arrangements, in a way that significantly overlaps with the capabilities of IBM's paid versions. Running Terraform to manage your own estate is one situation. Running it as a managed service for client environments, with a fee attached, is the situation to put in front of counsel. Ask counsel to read the Terraform LICENSE file in full, including its definitions, before you price a managed offer.

HashiCorp's pricing page lists HCP Terraform Essentials at $0.10 per resource per month ($0.00013 per hour), Standard at $0.47 per resource per month and Premium at $0.99 per resource per month. Terraform Enterprise (self-managed) and HCP Terraform Europe are at custom pricing. Because the charge recurs for every resource under management, your monthly cost follows the size of the estate across all client workspaces, and each new client adds to it. Before you choose a tier, ask HashiCorp how resources are counted, whether a resource in a client workspace is billed to you or passed through, and whether destroyed or idle resources count. Essentials limits test-integrated module publishing to 10 modules, while Standard and Premium add unlimited publishing, so a shared module library may decide the tier before resource counts do.

OpenTofu changes the license question. It is released under MPL-2.0 and is the command-line tool itself, so the per-resource schedule applies only to HCP Terraform. Terraform's own license also converts each version to MPL 2.0 four years after publication, which means older Terraform versions may already be on those terms. Ask counsel how that change date applies to the Terraform versions your clients run today. No MSP programme for OpenTofu is documented, so ask the project and your counsel directly whether a paid managed offer built on it raises any terms you need to meet.

How managed service providers test client separation before signing

This sequence tests whether one provider can keep client infrastructure apart, price the work from measured resource counts, and leave each client able to exit. It produces written evidence on licensing, access, cost and handover before any paid contract is signed.

  1. Have counsel read the Terraform license

    Counsel reads the Terraform LICENSE file, which applies IBM's Business Source License 1.1 to version 1.6.0 and later, and compares the paid client service you plan to sell against the license's definition of a competitive offering. That definition covers a product offered to third parties on a paid basis, including paid support, that significantly overlaps with IBM's paid versions. Internal use within one organization is not a competitive offering under the license, so the open question is how your managed service is packaged. Counsel should put the conclusion in a signed memo that names the Terraform versions covered.

  2. Build separate state for two clients

    Choose two illustrative clients, A and B, and give each its own state in a documented OpenTofu backend: S3, azurerm or kubernetes, matching the backend your clients' infrastructure already uses. Each client gets its own bucket, container, secret or namespace path, its own credentials and its own state file, and the backend configuration is stored in version control without secret values. Run an init and plan for each client to confirm it reads only its own state. This step is done when a backend runbook lists every location and credential owner, and each plan resolves to a single client.

  3. Test that each client's role is blocked

    Using the credentials for Client A, attempt to read, write and lock the state and workspace belonging to Client B, then repeat the test in the other direction. For a storage backend, the test covers the bucket, container or namespace path and any key or secret access; for HCP Terraform, it covers whether a team scoped to one project can see or run the other client's workspace. Record each attempt with the expected result and the actual denial. The step is done when every attempt fails and the log is attached to the pilot record, with any gap logged as a blocker before signing.

  4. Count resources in the pilot

    Count the managed resources each client's configuration creates, by client and environment. If HCP Terraform is in play, this count is the input that matters most, because HashiCorp's published pricing charges per resource per month, at $0.10 on Essentials, $0.47 on Standard and $0.99 on Premium, according to the HashiCorp pricing page. Ask for a quote that states the tier, the resource basis it assumes, what counts as a resource, and which pricing applies, since Terraform Enterprise and HCP Terraform Europe are custom. OpenTofu is MPL-2.0 licensed, so the count does not translate into a license fee and instead drives effort and support.

  5. Confirm HCP Terraform organization design

    Only run this step if HCP Terraform is still on the shortlist. Ask HashiCorp in writing whether one organization per client, or one organization with a project per client, fits your access model. An organization is a collection of projects, a user can belong to several organizations and switch between them, and projects group workspaces to manage access and settings. Ask whether HCP Terraform Europe is needed for data location, since it is a separate environment kept apart from other regions. Ask in the same message whether an MSP programme or multi-tenant terms exist. The step is done when HashiCorp's written answers match the design you tested.

  6. Write down the handover and exit path

    Document who holds each state location, credential and runbook, and how a client would leave: whether the same configurations run unchanged on OpenTofu or on Terraform, and what a move to another backend requires. OpenTofu's website describes it as a drop-in replacement for Terraform, but run the existing configurations against a copy of the pilot state and record every difference before relying on that description. Confirm which Terraform version your configurations target, since the Terraform license applies from version 1.6.0 onward. Have the client sign the handover record. The pilot results decide this choice more than a feature list does.

What managed service providers ask before hiring help with infrastructure as code

How much effort does client separation take with OpenTofu?

Separation effort depends mainly on how many clients you run and how you isolate their state, credentials and runners. OpenTofu keeps Terraform's workflow and configuration, so most of the work sits in the layout around the code. Each client usually needs its own state location in the backend, such as the OpenTofu S3 backend documentation describes for S3, with access limited to that client's credentials. Runners are the other driver: shared runners reduce upkeep but widen the blast radius, while per-client runners cost more to operate. Role design decides who can apply changes to which client. Effort rises with client count, the number of distinct backends and the number of clients on separate cloud accounts. Ask for the proposed state layout, role matrix and runner design in the written scope before you compare quotes.

Can an MSP run HCP Terraform for its clients under its contract?

Confirm this with HashiCorp before you design around HCP Terraform, because HashiCorp does not appear to publish a managed service provider programme. HCP Terraform groups workspaces into projects, and organizations are collections of projects. A user can belong to several HCP Terraform organizations and switch between them, which can separate clients at the account level. Whether an MSP may hold and operate client workspaces under its own subscription depends on the contract terms, who the contracting party is and who administers each organization. Regional environments such as HCP Europe keep organizations, projects and workspaces apart from other regions, so data location also needs confirming. Get written answers on contracting party, administrator rights and data location. DeployOpen is not an official partner or reseller of HashiCorp, so those answers must come from HashiCorp or your contract.

Does the Terraform license stop an MSP from charging for client management?

It can, depending on how the service is sold, so get a legal review before you bill for Terraform-based management. Terraform is licensed under the Business Source License 1.1, with IBM named as licensor, and this applies to version 1.6.0 or later. The grant allows production use, and the license states that hosting or using Terraform for internal purposes within an organization is not a competitive offering. The risk sits in the definition of a competitive offering: a product offered to third parties on a paid basis, including through paid support, that significantly overlaps with the capabilities of IBM's paid versions. Whether your managed service overlaps enough to count is a judgment for counsel. The license also converts each version to MPL 2.0 four years after publication. OpenTofu is MPL-2.0 licensed, so counsel should review its terms separately and not assume the Terraform analysis carries over.

What does a managed Terraform service need from the MSP's own team?

Your team needs working knowledge of the tool, the cloud accounts behind each client and the platform the runners sit on, and someone must own the process after handover. Core skills include writing and reviewing modules, managing state and locking, operating CI runners, setting role-based access and handling secrets. Effort is driven by client count, resource count and how often each client changes infrastructure. The work recurs throughout the contract: upgrades to OpenTofu or Terraform, provider updates, drift checks and access reviews happen continuously, not once. Ask for a handover plan that covers runbooks, a documented state layout, a named owner for each client and a list of who holds break-glass access. Fixed-scope engagements agree deliverables and timelines in writing before work starts, so request the handover items explicitly in that scope.

Is moving from HCP Terraform to OpenTofu practical later?

The configuration usually carries over, but the move needs a planned state and variable migration, and its effort depends on how much HCP Terraform does for you. The OpenTofu website describes OpenTofu as a drop-in replacement for Terraform that preserves existing workflows and configurations. The harder parts are state, which must move to a backend you operate, and anything held in HCP Terraform, such as workspace variables, run history, policies and VCS connections. Those need to be exported, recreated or replaced per client. Plan a parallel run for each client, a rollback path and a check that each migrated state plans with no unexpected changes. Before any quote, ask for an inventory of the HCP Terraform features each client uses, since that list drives the migration scope.

Can an MSP build this without outside help?

Yes, if the team already runs infrastructure as code in production and has capacity to own the design. The decision turns on existing skills, client count and how long the platform build would take your staff. OpenTofu is open source under MPL-2.0 and was accepted to the CNCF at the Sandbox maturity level on April 23, 2025, so the tool itself carries no license fee. Your costs are staff time, backend and runner infrastructure, and the ongoing upkeep of modules, state and access. Outside help makes sense when the design needs an independent review, when you want a fixed-scope build with written deliverables or when you want a retainer for upgrades and continuous testing. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms in your infrastructure, and gives a quote only from a written scope.

How DeployOpen helps an MSP design and run infrastructure as code for clients

DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside the client's own infrastructure. For an MSP choosing between OpenTofu, HCP Terraform and Terraform, the work starts with license and tenancy questions, then moves to state, access and pipeline design that your team and your clients can review. Engagements are fixed-scope, with deliverables agreed in writing before work starts.

How we scope

  • The written scope names each client environment, cloud account or data center, and the IaC tool chosen for it.
  • Scope records the Terraform license position under the Business Source License, which counsel should confirm early.
  • Deliverables, timelines and acceptance tests are agreed in writing, and ongoing support is available as a retainer.

How we build

  • Modules, state backends and variable handling are designed per client so each tenant's state stays separate.
  • Access is mapped to each client's roles, using HCP Terraform projects or pipeline permissions where OpenTofu is chosen.
  • Runs are tested in a non-production environment and reviewed before they touch a client's production infrastructure.

How we hand over

  • Documentation covers module layout, backend setup, run procedures and the steps to add a client without editing shared code.
  • A walkthrough of plan review, state recovery and upgrades can be written into the scope.
  • Handover lists what each client's state, credentials and runners depend on, so your team can take over the work.

How we support

  • Ongoing support, upgrades and continuous testing can be contracted as retainers after handover.
  • Upgrade work covers OpenTofu or Terraform version changes, provider updates and state backend checks in your environment.
  • Quotes follow from the written scope, so the cost of support depends on the environments and tools covered.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.