Open questions
This prototype has settled a few things: Effective Cloud always does the shipping; each environment has one recorded owner; builds are made once and promoted. Below is what’s still open, roughly in order of how much it shapes the API. Each question ends with a current leaning, not a decision.
Decided (October 23)
Section titled “Decided (October 23)”- Switching an App to a build ships. It’s an update that uploads nothing (the versions match) and records which build runs, so the environment can be promoted from straight away. See From a build.
- A build is a directory or an id.
infra build --out r2://<bucket>writes it to an R2 bucket of the account, andbuild:takesr2://<bucket>/<build id>from Pulumi config, as it takes a directory. The deployer as a store can come later. - Secrets are App inputs.
secrets: { 'stripe-key': config.requireSecret('stripeKey') }sets the app’s declared secrets on the Workers that bind them, with their new versions, when new or changed. Pulumi’s state keeps them encrypted, even if a program passes a plain string; Effective Cloud’s state never has them. One taken away is deleted once the app no longer declares it; while it does, that’s refused. - A stack’s outputs are read through Pulumi’s CLI when it’s there:
--provided pulumi:<org>/<project>/<stack>, beside the file, which stays the universal way. ESC can set--providevalues as variables. - Typed
externalscover every name. A TypeScript App typed by its app checks provided keys (a bare.provided()by its resource’s name) and bindings by name (.external(name)). .provided(key)keeps its name.- The input split is shelved. An App owning an environment’s settings
while CI chooses its build (
ships: 'outside') adds a second owner to every environment; the App from a build and the platform-only path cover what it was for. To revisit only if a team needs split ownership. - Shipping through the deployer: yes, opt-in. Done:
vianames it. The deployer ships on the stack’s behalf (the stack stays the recorded owner), reads builds from R2 by reference, and is sent the secrets a plan sets, never keeping them. See Through a deployer. - The deployer doesn’t run whole Pulumi projects. It could, in a Cloudflare Container (Pulumi’s engine can’t run in a Worker), but it would then run its users’ code with every credential their projects need, and Pulumi Deployments and CI already run Pulumi well. Pulumi runs where people already run it; Effective Cloud makes its own part of that pleasant (the App, builds by reference, provided names, shipping through the deployer). To revisit if a team wants hosted runs with their state in R2 and no Pulumi Cloud.
- Pulumi’s state can live in R2. Checked live: the self-managed backend works on R2, locking included. See Pulumi’s own state in R2.
Still open
Section titled “Still open”- Other languages. The schema can generate SDKs for Python, Go and .NET. None has been tried; with publishing.
- Signed builds. Optional and off by default, as decided. An
environment could opt in to accepting only signed builds from
main. To design later.