Skip to content

Manage Pulumi ESC change requests from the CLI โ€‹

2026-10-26 ยท sean-yeh

With ESC Approvals, changes to a protected environment go through a change request. Teammates can review and approve the change before it's applied.

Today we're introducing the pulumi env approval command to work with change requests from the CLI.

Review changes without switching to the Pulumi Cloud console, script your approval workflows, or give your agent the tools it needs to review and work with change requests.

How it works โ€‹

Let's say your my-project/prod ESC environment is set up to require approval on change. Alice wants to scale the app to 3 replicas, so she opens a change request:

bash
$ pulumi env set my-project/prod app.replicas 3 --draft

You're the reviewer. Here's how you'd take it from there.

Find the change request โ€‹

List the open change requests for an environment:

bash
$ pulumi env approval list --env my-project/prod
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ID                                   โ”‚ AUTHOR โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 3045b80b-9a13-43c3-9f63-59fa1b09e18d โ”‚ alice  โ”‚
โ”‚ 0dace5b4-ef98-4b4c-9a17-627db3662d3f โ”‚ bob    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Review the change โ€‹

See the details of a change request:

bash
$ pulumi env approval get 3045b80b-9a13-43c3-9f63-59fa1b09e18d
ID: 3045b80b-9a13-43c3-9f63-59fa1b09e18d
Environment: acme/my-project/prod
Action: update
Status: pending
Author: Alice <alice>
Created: 2 hours ago
Revision: 1
Base environment revision: 2
Current environment revision: 2
Description:
  Scale up to 3 replicas
Approved: false
  prod-approvers (not satisfied): 0 of 1 approvals
URL: https://app.pulumi.com/acme/esc/my-project/prod?version=3045b80b-9a13-43c3-9f63-59fa1b09e18d

See what it changes:

bash
$ pulumi env approval diff 3045b80b-9a13-43c3-9f63-59fa1b09e18d
--- acme/my-project/prod@2
+++ draft 3045b80b-9a13-43c3-9f63-59fa1b09e18d
@@ -1,3 +1,3 @@
 values:
   app:
-    replicas: 2
+    replicas: 3

Approve the change โ€‹

Approve it with a comment. The CLI shows the diff again before you confirm:

bash
$ pulumi env approval approve 3045b80b-9a13-43c3-9f63-59fa1b09e18d -m "Looks good"
Change request 3045b80b-9a13-43c3-9f63-59fa1b09e18d will update environment acme/my-project/prod.
...

Do you want to approve this change request? yes
Approved change request 3045b80b-9a13-43c3-9f63-59fa1b09e18d

Apply the change โ€‹

Once the change request has the required approvals, you or Alice can go ahead and apply it:

bash
$ pulumi env approval apply 3045b80b-9a13-43c3-9f63-59fa1b09e18d
Change request 3045b80b-9a13-43c3-9f63-59fa1b09e18d will update environment acme/my-project/prod.
...

Do you want to apply this change request? yes
Applied change request 3045b80b-9a13-43c3-9f63-59fa1b09e18d

That's it! Alice's change is now live in prod.

Beyond the basics โ€‹

  • For scripts and agents: pass --yes to approve and apply to skip the confirmation prompt, and --output json to get machine-readable output from commands like list, get, and apply.
  • Concurrent change requests: if another change request is applied before yours, run pulumi env approval rebase <id> to update yours to the latest revision.

Get started โ€‹

Change requests are available on the Pulumi Cloud Pro and Enterprise editions. See the pulumi env approval docs to learn more. Give it a try, and let us know what you think in the Pulumi Community Slack!

Content from the official Pulumi documentation (github.com/pulumi/docs).