SAP BTP · Infrastructure as Code · AI

Infrastructure as Code for SAP BTP — the prerequisite for enterprise AI

8 min readSAP BTPTerraform + BTP CLIAI enablement
TL;DR

AI on SAP is a platform problem before it is a model problem. The landscape around the model — subaccounts, identity, quotas, trust, logging — is what makes AI safe, reproducible, and scalable. Infrastructure as Code on SAP BTP is no longer a nice-to-have: it is the gate between “we have AI pilots” and “AI is a real capability of our platform.”

The problem hiding in plain sight

Most enterprises running SAP BTP provision their landscape by hand. A subaccount is requested through a ticket. An engineer logs into the BTP cockpit, clicks through entitlements, assigns role collections, configures trust, and hands the environment off. Multiply that by a growing portfolio of extensions, sandboxes, and integration tenants and the cockpit becomes the bottleneck. Lead times of weeks per environment are common, and quietly accepted.

This is tolerable for traditional workloads. It is fatal for AI.

Why AI breaks click-ops

AI on SAP is not a single deployment. It is a sprawl of related resources that must all be consistent:

Get any one of those wrong and the behavior of the agent either drifts, leaks data, or silently fails closed. The thing nobody says out loud: the hardest part of AI on SAP is not the model. It is the landscape around it.

AI also changes the tempo of the platform. Pilots should fail fast. Promising experiments should scale across business units in days, not quarters. Failed experiments should be torn down cleanly, without a three-week cleanup project. Click-ops provisioning makes all of this harder, not easier.

What Infrastructure as Code actually changes

The core move is small and consequential: the cockpit becomes a UI, not the source of truth. The source of truth is a Git repository. Subaccounts, entitlements, subscriptions, role collections, destinations, trust configurations, AI Core resources — all generated from code.

Three practical choices matter more than the tool selection.

1. Pick boring tools deliberately

Terraform with the official SAP BTP provider covers the declarative majority of the landscape. The BTP CLI, wrapped in thin scripts, handles the edges Terraform does not yet cover cleanly — certain trust flows, AI Core resource groups, a handful of identity operations. That is the whole toolchain. No bespoke framework. Nothing a platform team cannot hire for.

2. Modularize by archetype, not by project

The trap is to write one module per project. The better shape is a small set of archetypes — “AI sandbox”, “CAP extension dev”, “integration hub”, “Fiori frontend”, “regulated workload” — each with opinionated defaults: quotas, mandatory role collections, mandatory destinations, logging, AI Core resource groups where relevant. A new environment becomes a short YAML file, not a sprawl of copy-pasted Terraform.

Archetypes force the hard conversation once — “what is a regulated workload, exactly?” — and then encode the answer. Every new environment inherits that answer. Drift becomes a pull request, not a quarterly surprise.

3. Embed governance in the pipeline

Policy-as-code runs on every pull request. No subaccount without an owner. No production-tier entitlement without a cost approver. No AI Core deployment without a data classification tag. No side-by-side extension without a clean-core declaration.

Audit stops being a quarterly panic. The Git log is the audit trail. Compliance stops being adversarial to the platform team, because the platform’s guarantees are mechanically verifiable.

The specific AI payoff

Once the landscape is code, AI changes shape:

Cockpitis a UI, not the source of truth
Archetypesbeat bespoke, every time
Policyin the pipeline, not in the meeting

What IaC does not solve

It is worth being honest about the limits. IaC does not:

IaC is the foundation. It is not the building.

A practical starting point

If your organization is still clicking in the cockpit, the useful first step is not “migrate everything to Terraform.” It is smaller: pick one archetype — the AI sandbox — and codify it end-to-end, with the full guardrails, as the canonical way to get an AI environment. Make the codified path faster than the ticket path. Business units will migrate themselves.

From there, expand archetype-by-archetype. Resist the urge to parameterize every flag. The value of archetypes is in the opinions they carry; strip those out and you are back to artisanal provisioning with extra YAML.

AI on SAP BTP scales when the platform team stops operating the cockpit and starts operating a pipeline. The tooling is mature enough. The excuse is gone.

Key takeaways

Thinking about IaC on SAP BTP?

We run short architecture sprints that produce a working Terraform baseline and the first codified archetype in 4–6 weeks.

Start the conversation

Schedule a free call