Skip to content
Back to skills

Pulumi Knowledge Patch

ASecurity

Pulumi

  • 25 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentpythonrustgojavanodekubernetesawsgcpazureterraform

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill pulumi-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pulumi Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pulumi Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-pulumi-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-pulumi-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pulumi-knowledge-patch
description: Pulumi
version: "3.278.0"
license: MIT
metadata:
  author: Nevaberry
---


# Pulumi Knowledge Patch

Load this skill when changing Pulumi programs, CLI workflows, stack state,
Automation API integrations, components, providers, or policy packs. Use the
topic references for detailed behavior, language-specific APIs, and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [CLI and operations](references/cli-and-operations.md) | Command migrations, projects, config, output, logging, tracing, Cloud API calls, direct resource operations, Neo |
| [State, imports, and backends](references/state-imports-and-backends.md) | DIY layout migration, state moves, imports, integrity, locking, Stash, migration callbacks |
| [Resources and engine](references/resources-and-engine.md) | Replacement, protection, hooks, transforms, targeting, invokes, dependencies, unknown outputs, reads |
| [Components and packages](references/components-and-packages.md) | Cross-language components, schema inference, Git and Registry packages, publishing, Azure Native migration |
| [Languages and runtimes](references/languages-and-runtimes.md) | Runtime requirements, Node.js, Python, Go, Bun, SDK generation, outputs, mocks, type checking |
| [PCL and conversion](references/pcl-and-conversion.md) | Terraform and HCL conversion, converter protocols, PCL declarations, functions, types, code generation |
| [Provider and protocols](references/provider-and-protocols.md) | Go provider authoring and tests, configuration, reads, RPCs, plugin APIs, schema validation |
| [Automation and integrations](references/automation-and-integrations.md) | Automation APIs, cancellation, previews, deployment settings, CI, Kubernetes Operator workspaces |
| [Policy, security, and authentication](references/policy-security-and-auth.md) | Policy groups, analysis, exceptions, OIDC, credentials, ESC, encryption, audit logs |

## Breaking changes and deprecations

### CLI commands and persisted settings

- `pulumi query` is removed in 3.157.0. `pulumi watch` and bare `pulumi logs`
  are removed in 3.273.0.
- DIY stores in non-project mode are unsupported from 3.275.0. Migrate legacy
  stores to the project-scoped layout before upgrading with `pulumi state upgrade`.
  The command accepts `--yes`.
- Local `Pulumi.<stack>.deploy.yaml`, its SDK helpers, and the deployment-settings
  `--config-file` flag are removed in 3.251.0. Replace workflows using `init`,
  `pull`, `configure`, `env`, or `push` (also `update` and `up`) with
  `pulumi deployment settings get`, `edit`, and `destroy`.
- Use `pulumi env approval` in place of the deprecated `pulumi env change-request`
  group from 3.278.0. The new group also handles environment open requests.
- `pulumi new` removes its AI mode and the `--ai` and `--language` flags in
  3.256.0; interactive creation can ask for a cloud provider and language.
- `requiredPulumiVersion` in `PulumiPlugin.yaml` replaces `pulumiVersionRange`.
  Projects can also declare `requiredPulumiVersion` in `Pulumi.yaml`.
- The published 3.275.0 checksums are corrupted. Use 3.276.0 or later for
  checksum-verified installs.

### Runtime and Go API migrations

The Node.js SDK requires Node.js 22 or later from 3.249.0. Generated Go programs
and SDKs target Go 1.25 from 3.226.0; the Go SDK supports Go 1.27 from 3.260.0.
On Python 3.14, the SDK requires `grpcio>=1.75.1` from 3.210.0.

In 3.278.0, `property.Map.All`, `property.Map.AllStable`, and `property.Array.All`
return `iter.Seq2`. Rename `property.Value.Secret()` calls to `IsSecret()`.

```go
for key, value := range properties.AllStable() { fmt.Println(key, value) }
```

`workspace.Credentials.AccessTokens` is removed in 3.266.0. Read stored logins
from the `accounts` object in `credentials.json`. In Go policy validators,
remove references to the removed `policyx.ResourceValidationArgs.DryRun`;
remediations run only at the `remediate` enforcement level.

### Provider reads and output failures

Version 3.274.1 reverts the inputs-only provider `Read` behavior. Provider
implementations should handle populated `State` on user-driven gets and imports
again. Node.js and Python dynamic providers fall back to request `inputs` when
`properties` is empty.

Under `--continue-on-error`, failed resources and reads yield unknown outputs
from 3.271.0, so `Output.recover` can no longer catch those failures. Dependents
of skipped resources receive dry-run outputs and can still register from 3.272.0.

A provider can return `AwaitError` when an operation still needs to be awaited.
The deployment continues with unknown resource outputs and the CLI exits with
code `10` (`ExitAwaitError`). In Node.js and Python Automation API events,
`ResOpFailedEvent.awaited` distinguishes awaiting resources from failures.

## Resource lifecycle and dependencies

Set `ReplaceWith` on the resource that should be replaced and reference its
trigger: if B references A, replacing A also replaces B. A list triggers on any
listed replacement; chains propagate, and mutually linked resources replace
as a group. Language-specific syntax is in the resources reference.

| Need | Supported behavior |
| --- | --- |
| Replace when a value changes | Use `pulumi.ReplacementTrigger` in Go, `replacementTrigger` in Node.js, or `pulumi.ResourceOptions(replacement_trigger="v2")` in Python |
| Hide displayed property diffs | `HideDiffs`, `hideDiffs`, or `hide_diffs` hides selected diffs while the engine still applies the changes |
| Override inherited options | A child can set inherited `protect` or `retainOnDelete` to `false` |
| Override protection for a run | `up`, `preview`, and `destroy` accept `--ignore-protect` to allow deletion without first changing protection in state |
| Mark a replacement in state | `pulumi state taint "$RESOURCE_URN"`; clear it with `pulumi state untaint "$RESOURCE_URN"` before the update |
| Bound provider reads | Set the custom timeout's `read` field, for example `customTimeouts: { read: "30s" }` |

For delete hooks, run `pulumi destroy --run-program` so the program registers
the hooks before deletion. After-hook failure fails the deployment. `OnError`
supports custom retry policies; when retrying a partially successful create,
it updates the partially created resource. A successful command exit from a
PCL `onError` hook retries the failed resource operation.

Go, Node.js, and Python output-form invokes resolve to unknown during preview
while a declared dependency, including a remote component's child, is pending
creation. Go infers these dependencies from arguments and carries them in results.

PCL's `resourceExists` checks an ID without adopting the resource. Generated
Node.js and Python SDKs expose static `exists` methods; Go SDKs provide
`<Resource>Exists` functions.

## Refresh, imports, and state moves

Use `--run-program` during refresh or destroy when the program needs to obtain
short-lived credentials or configure dynamic providers. Set
`PULUMI_RUN_PROGRAM=true` to default it on; it also works alongside `--refresh`
on preview and update.

```sh
pulumi refresh --run-program
pulumi destroy --run-program
pulumi up --refresh --run-program
```

The `import` resource option can adopt an existing resource and apply changes
to its declared inputs in one deployment. Import files can declare providers
in `resources` and refer to them by name. Entries can supply `inputs` and
`outputs` directly; supplying `outputs` skips the provider read.

`pulumi preview --import-file` omits unknown values, and `pulumi import` rejects
files containing them. `pulumi import --preview-only` emits generated resource
code from 3.274.0. Use `pulumi stack migrate` to bring a stack from another backend into the
currently logged-in backend, re-encrypting config secrets and stack state with
the destination secrets provider.

Pass a destination resource URN to `pulumi state move --parent` to reparent
moved resources. `pulumi state promote` turns stored snippets into program code
and protects retained resources before their generated definitions are added.

## Configuration and project creation

Use `pulumi config set --type string accountCode 0123` to store a numeric-looking
value as a string, `pulumi config set-all --json` for bulk JSON input, and
`pulumi config set --raw` to preserve newlines piped through stdin.

`refresh` and `destroy` accept `--config` overrides; `--config-path` interprets
keys as structured paths. `--override-env` on preview, update, refresh, or destroy
replaces imported ESC environments for one run while preserving saved config.
`--skip-config-validation` bypasses validation against the project config schema.

`PULUMI_OPTION_*` variables can set CLI flags, for example
`PULUMI_OPTION_REFRESH=true pulumi preview`. The CLI tracks the current stack
separately for each backend. `PULUMI_DEFAULT_ORGANIZATION` sets its default org.

`pulumi project new -y` writes a minimal project file without applying a template.
CLI operations and Automation API project settings support projects without
`runtime`. Guided `pulumi new` collects stack name, template configuration, and
package manager before writing project files, so cancelling those prompts leaves
no project files.

## Packages, components, and conversion

Put `PulumiPlugin.yaml` in a component package and set `runtime` to its authoring
language. The plugin uses that runtime even if the consumer uses another language.
`pulumi package add ./components/buckets` generates a local SDK in the consumer's
language; regenerate it when the component interface changes. Use `./` or `../`
to identify relative package sources as filesystem paths.

`pulumi install` installs project package SDKs and recurses into local packages.
Package commands resolve through the Cloud Registry by default. `--server`
supplies a direct plugin download URL and skips package resolution for the
package commands and schema checking documented in the components reference.

`pulumi convert` can automatically bridge a Terraform program's providers.
Copy `.tfvars` values into the destination stack configuration manually.
Converting Terraform to the `hcl` target returns an error, as does
`pulumi import --from terraform` in a Pulumi HCL project.

Azure Native v3's main SDK ships only default ARM API versions. Generate a local
package to keep typed resources at an explicit version, for example
`pulumi package add azure-native storage v20240101`, and switch imports to it.
The components reference includes generic ARM resources and migration guides.

## Authentication, ESC, and policy

`pulumi login --oidc-token "$OIDC_TOKEN" --oidc-org my-org` exchanges a workload
token for a short-lived Cloud access token. Register the issuer, configure an
authorization policy, and supply the required audience. The default lifetime is
two hours; `--oidc-expiration`, `--oidc-team`, and `--oidc-user` control lifetime
and scope. Organization, team, and user can be inferred from JWT claims.

`PULUMI_CREDENTIAL_STORE` selects opt-in OS-backed credential encryption.
`pulumi logout --all --delete-credentials-key` deletes its encryption key.
Automatic agent signup is opt-in via `PULUMI_ENABLE_AUTOMATIC_AGENT_SIGNUP`;
`pulumi whoami` no longer creates an agent account.

`pulumi env setup aws`, `azure`, and `gcp` configure cloud OIDC trust and create
ESC environments. Concurrent environment edits are detected: `env edit` reopens
the editor with both definitions, while `env set`, `env rm`, and `env provider`
fail on a conflict. Grant rotated-secret consumers access separately from
permission to administer rotation.

Use `pulumi policy analyze` for existing state, or
`pulumi policy analyze --file state.json` for an exported state file without
stack selection or backend login. Version 2 of `--policy-pack-config` places
per-policy settings under `policies` and exemptions under `exceptions`.
Hosted policy exception commands require `PULUMI_EXPERIMENTAL=true`.

## Automation and operation output

For refresh dry runs, call `await stack.previewRefresh()` in Node.js or
`stack.preview_refresh()` in Python. Python also has `stack.preview_destroy()`.
The automation reference covers inline programs, config files, stderr callbacks,
remote executor images, generated CLI commands, and Java programs.

Use `--output json` for operation summaries; preview, update, destroy, and
refresh summaries include affected resources with `urn`, `type`, `name`, `op`,
and `parent`. `pulumi stack history events --summary` also includes error
diagnostics and failed-resource markers. `--otel-traces` exports traces to a
file or collector, including provider spans.

Every command saves automatic logs by default. Use `pulumi logs decrypt`,
`pulumi logs ls`, `pulumi logs rm`, and `pulumi logs share` to work with captured
logs. Invalid-input diagnostics redact secrets unless `--show-secrets` is passed;
JSON preview and update output redact secret maps and arrays.

Files in this skill

  • SKILL.md8.2 KB
  • coverage.json1.5 KB
  • references/automation-and-integrations.md3.1 KB
  • references/cli-and-operations.md4.4 KB
  • references/components-and-packages.md4.8 KB
  • references/languages-and-runtimes.md4.6 KB
  • references/pcl-and-conversion.md3.8 KB
  • references/policy-security-and-auth.md3.9 KB
  • references/provider-and-protocols.md4 KB
  • references/resources-and-engine.md4.2 KB
  • references/state-imports-and-backends.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.