Effective Cloud and Pulumi
Pulumi and Effective Cloud do different jobs. Pulumi is good at the account around an app: zones, DNS, WAF, Access, shared buckets, and other clouds. Effective Cloud is good at the app itself: its Workers, their bindings, rollouts, smoke tests, contract checks between apps, and an undo when a ship fails halfway. The question is where to draw the line between them.
There are three answers, and they can be mixed across environments:
| Pulumi has | Effective Cloud ships | Good for | |
|---|---|---|---|
| An App from its module | the app, as one resource: module: ./app.ts |
in pulumi up, building as it goes |
trying it out; small teams; one command for everything |
| An App from a build | the app, as one resource: build: <dir> |
in pulumi up, a build CI made once |
build once, deploy the same thing to staging and production |
| No App: the platform only | the platform, and exports its names | with infra ship, given those names |
a platform team that owns Pulumi, app teams that own their deploys |
In every case, Effective Cloud does the shipping: the plan, the rollout, the smoke tests and the record in its state. Pulumi never uploads a Worker itself, so nothing about how an app ships changes with the path you pick.
One owner for each environment
Section titled “One owner for each environment”Two tools that each think an environment is theirs undo each other’s
work. So Effective Cloud records one owner for each environment: ecloud,
a deployer, or a Pulumi stack (pulumi:<project>/<stack>). The owner
ships; the others refuse, saying who owns it:
stopped: shop (production) is shipped by pulumi:shop/production (recorded 2026-10-23T15:02:11Z,by pulumi), not by ecloud: ship it there, or, if that's no longer so,`infra state owner <app.ts> --env production --set ecloud` (or --clear) records itA Pulumi App records its stack the first time it ships an environment that has no owner, and lets go when it’s deleted. A preview from a stack that doesn’t own the environment fails, before anything changes.
Reading an app from Pulumi
Section titled “Reading an app from Pulumi”getApp reads an environment’s outputs by the app’s name, with no source,
the way a stack reference reads another stack. Use it to point DNS, a WAF
rule or another app at what an Effective Cloud app made:
import { getAppOutput } from '@effectivecloud/pulumi';
const shop = getAppOutput({ app: 'shop', env: 'production' });export const script = shop.workers.apply((w) => w[0]?.script);It returns each Worker’s script name, URL, routes and deployment; each
resource’s name and Cloudflare id, with how Pulumi’s Cloudflare provider
would import it; what the app binds outside itself; and who owns the
environment. pnpm infra outputs --app shop --env production --json prints the same
thing.
Pulumi’s own state in R2
Section titled “Pulumi’s own state in R2”Pulumi doesn’t need Pulumi Cloud. Its self-managed backend keeps a stack’s state in any S3-compatible bucket, and R2 is one, so the app, Effective Cloud’s state, its builds and Pulumi’s state can all live in the same Cloudflare account:
pulumi login 's3://my-pulumi-state?endpoint=https://<account id>.r2.cloudflarestorage.com®ion=auto&s3ForcePathStyle=true'R2’s S3 keys come from an API token that may use R2: the key id is the
token’s id (GET /accounts/<account>/tokens/verify), and the secret is
the SHA-256 of the token, as AWS_ACCESS_KEY_ID and
AWS_SECRET_ACCESS_KEY. Stack names are organization/<project>/<stack>,
which is what --provided pulumi:… takes.
Checked live: a stack made, shipped, previewed again as unchanged,
refreshed and destroyed with its state in R2; its checkpoints, history
and backups were there, and no lock was left behind. Its locking holds:
an up started while another runs is refused (the stack is currently locked). Two started at the very same moment can both be refused, as
each sees the other’s lock; neither runs, so a CI job should retry
rather than fail. Secrets are encrypted with a passphrase or a KMS
(pulumi stack init --secrets-provider), since there’s no Pulumi Cloud
to keep them.
Where to go next
Section titled “Where to go next”- The App resource: its inputs and outputs, and what each Pulumi step does.
- Pulumi for the platform only: names provided at deploy, and a pipeline that builds once.
- Open questions: what we haven’t decided yet.