WHAT YOU'LL LEARN
  • When and why you need to run raw Pulumi commands
  • How to use webiny pulumi to pass commands to the Pulumi CLI
  • Common scenarios where this command is required

Overview
anchor

The pulumi command is a thin wrapper that lets you run any Pulumi CLIexternal link command against a specific app and environment. Webiny embeds its own Pulumi binary and sets up the required environment variables automatically — you do not need to install Pulumi separately or select a stack manually.

Most day-to-day work uses webiny deploy and webiny destroy. Use webiny pulumi when you need lower-level access that those commands do not expose.

Usage
anchor

The app name and the -- separator are both required. Everything after -- is passed directly to the Pulumi CLI.

With a specific environment:

Options
anchor

OptionDescription
--envEnvironment name (e.g. dev, prod). Defaults to dev.
--variantVariant name.
--regionAWS region to target.

Common Use Cases
anchor

Inspect Stack Resources
anchor

List all cloud infrastructure resources currently tracked in the stack:

Repair a Stuck Stack (Pending Operations)
anchor

If a deployment was interrupted, Pulumi may report resources stuck in a pending_operations state. Export the stack, edit it to remove the pending entries, then import it back:

Refresh State
anchor

Sync the Pulumi state file with the actual state of resources in AWS:

This is useful when resources have been modified outside of Pulumi (e.g. manually in the AWS console).

Preview Changes
anchor

See what deploy would change without actually deploying:

Troubleshooting
anchor

--yes must be passed in to proceed when running in non-interactive mode
anchor

Webiny runs all Pulumi commands in non-interactive mode. If a Pulumi command requires confirmation, add --yes: