Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pulumi Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-pulumi-knowledge-patch)
---
name: pulumi-knowledge-patch
description: Pulumi
version: "3.278.0"
license: MIT
metadata:
author: Nevaberry
---
# Pulumi Knowledge Patch
Load this skill for Pulumi CLI and SDK compatibility, stack state and imports,
resource lifecycle behavior, component packages, provider development, and
Cloud operations. Use the topic references for full guidance and examples;
the quick references below highlight migrations and commonly used features.
## Reference index
| Reference | Topics |
| --- | --- |
| [CLI Operations and Configuration](references/cli-operations-and-configuration.md) | Commands, project creation, config, authentication, logs, traces, Automation API, Neo |
| [Cloud, Policy, and Operations](references/cloud-policy-and-operations.md) | Deployment settings, Cloud API, ESC, policy packs and groups, integrations, Kubernetes Operator |
| [Components, Packages, and Runtimes](references/components-packages-and-runtimes.md) | Cross-language components, package sources, plugins, language runtimes, outputs, SDK testing |
| [Providers, Schemas, PCL, and Protocols](references/providers-schemas-pcl-and-protocols.md) | Provider APIs, SDK generation, schema validation, PCL, conversion, Go Provider SDK, Azure Native |
| [State, Import, and Resource Lifecycle](references/state-import-and-lifecycle.md) | DIY backends, state repair and migration, imports, replacement, hooks, unknown outputs, stored snippets |
## Breaking changes and deprecations
- Version 3.275.0 removes DIY stores in non-project mode. Migrate legacy stores
to the project-scoped layout before upgrading with `pulumi state upgrade`.
- Version 3.251.0 removes `Pulumi.<stack>.deploy.yaml`, its SDK helpers, and the
deployment-settings `--config-file` flag. Replace workflows using `init`,
`pull`, `configure`, `env`, or `push` (also called `update` and `up`) with
`pulumi deployment settings get`, `edit`, and `destroy`.
- Version 3.157.0 removes `pulumi query`; 3.273.0 removes `pulumi watch` and
bare `pulumi logs`. From 3.256.0, `pulumi new` removes AI mode and the `--ai`
and `--language` flags.
- From 3.278.0, use `pulumi env approval` in place of the deprecated
`pulumi env change-request` group. It also handles environment open requests.
- The Node.js SDK requires Node.js 22 or later from 3.249.0. Python 3.8 support
ends in 3.143.0; Python 3.14 requires `grpcio>=1.75.1` from 3.210.0.
- Version 3.274.1 reverts inputs-only provider `Read` behavior. Provider
implementations should handle populated `State` on user-driven gets and
imports again; the earlier behavior started in 3.271.0.
- From 3.271.0, failed resources and reads yield unknown outputs under
`--continue-on-error`, so `Output.recover` can no longer catch those failures.
- From 3.264.0, Go policy remediations run only at the `remediate` enforcement
level. Remove references to `policyx.ResourceValidationArgs.DryRun`.
- Version 3.266.0 removes `workspace.Credentials.AccessTokens`. Read stored
logins from the `accounts` object in `credentials.json`.
- In 3.278.0, `property.Map.All`, `property.Map.AllStable`, and
`property.Array.All` return `iter.Seq2`; rename `property.Value.Secret()`
calls to `IsSecret()`.
- From 3.245.0, remove the `name` argument from Go plugin-loading calls and
supply `Type` to `Configure` and `DiffConfig`. From 3.247.0, host methods
that start or resolve plugins take a workspace-aware `plugin.Context`.
- Version 3.220.0 deprecates `github.com/pulumi/pulumi/pkg/v3/codegen/dotnet`.
Go callers can migrate to
`github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/v3/codegen`.
- The published 3.275.0 checksums are corrupted. Use 3.276.0 or later for
checksum-verified installs.
## CLI configuration and scripting
Set `requiredPulumiVersion` in `Pulumi.yaml` from 3.219.0 and in
`PulumiPlugin.yaml` from 3.221.0, where it replaces `pulumiVersionRange`.
```yaml
requiredPulumiVersion: ">=3.221.0"
```
Use `pulumi config set --type` to specify a value's type explicitly. From
3.247.0, `pulumi config set --raw` preserves newlines from stdin. From 3.202.0,
`pulumi config set-all --json` accepts JSON input.
From 3.214.0, refresh and destroy accept `--config` overrides; `--config-path`
interprets override keys as paths into structured config. From 3.254.0,
`--override-env` on preview, update, refresh, and destroy replaces imported
ESC environments for one run while preserving saved stack configuration.
`PULUMI_OPTION_*` environment variables can set CLI flags from 3.208.0.
`PULUMI_STACK` selects the stack for config and state commands from 3.154.0;
the CLI tracks the current stack separately for each backend from 3.256.0.
Use `--output json` for operation summaries. From 3.246.0, preview, update,
destroy, and refresh summaries include affected resources with `urn`, `type`,
`name`, `op`, and `parent`. Distinct CLI failure categories have distinct exit
codes from 3.227.0; scripts handling failures together can test any nonzero status.
## Refresh, deletion, and resource lifecycle
From CLI 3.160.0, `--run-program` runs the stack program before refresh or
destroy. Opt in for short-lived credentials or dynamic-provider configuration.
For a stack with delete hooks, use `pulumi destroy --run-program` so the
program registers the hooks before deletion.
```sh
pulumi refresh --run-program
pulumi destroy --run-program
```
`PULUMI_RUN_PROGRAM=true` defaults the flag on. It can also accompany
`--refresh` on preview or update. Resource hooks are supported by the engine
and Go, Node.js, and Python SDKs from 3.182.0.
Use `--exclude` to omit a resource and `--exclude-dependents` to omit its
children. From 3.262.0, `--target-dependents` and `--exclude-dependents` follow
dependency paths through resources read with `.get()`.
From 3.256.0, `up`, `preview`, and `destroy` accept `--ignore-protect` to allow
deletion of protected resources without first changing their protection in state.
`pulumi state taint` schedules replacement on the next update;
`pulumi state untaint` clears the mark before that update.
Set `ReplaceWith` on the resource that should be replaced and reference its
trigger: if B references A, replacing A also replaces B. A `replaceWith` list
triggers on any listed replacement; chains propagate, and mutually linked
resources replace as a group. A resource's replacement trigger can hold an
arbitrary value whose change between runs replaces the resource.
`hideDiffs` hides selected property diffs while the engine still applies the
changes. From 3.274.0, PCL paths can name resource input and output properties.
The `OnError` hook supports custom retry policies; from 3.264.0, retrying a
partially successful create updates the partially created resource.
## Imports, stored state, and direct resource operations
From 3.174.0, the `import` resource option can adopt an existing resource and
apply changes to its declared inputs in one deployment. From 3.254.0, import
files can declare explicit providers in `resources` and refer to them by name.
Entries can supply `inputs` and `outputs`; supplying `outputs` skips the provider
read. From 3.258.0, import rejects unknown values in import files.
From 3.260.0, `pulumi state promote` turns stored snippets into program code.
From 3.263.0, it protects retained resources against deletion during an update
before their generated definitions are added to the program.
In 3.254.0, `pulumi do create` and `pulumi do delete` can record changes in
stack state, and `pulumi do upsert` creates or updates a resource in the stack.
From 3.257.0, `pulumi do <pkg> <resource> patch <name>` overlays supplied inputs
onto the existing snippet in stateful mode. `pulumi do show-resources` lists
identifiers for existing resources available to input expressions.
`pulumi stack migrate` brings a stack into the currently logged-in backend
from 3.254.0, re-encrypting configuration secrets and state with the destination
secrets provider. From 3.277.0, `pulumi state move --parent` accepts a destination
resource URN to parent moved resources under it.
## Packages, components, and providers
`pulumi package add` generates a local SDK from a component schema in the
consumer's language. Regenerate it when the component interface changes.
Put `PulumiPlugin.yaml` in the component package directory and set `runtime`
to the authoring language; the plugin runs in that runtime across consumers.
```sh
pulumi package add ./components/buckets
```
From 3.181.0, use `./` or `../` to identify a relative package source as a
filesystem path. Package commands and `pulumi install` resolve package names
through the Cloud Registry by default from 3.220.0. From 3.256.0, `--server`
supplies a direct plugin download URL and skips package resolution for
`pulumi package add`, `publish`, `get-schema`, `get-mapping`, `gen-sdk`, `info`,
and `pulumi schema check`.
For Azure Native v3, the main SDK ships only default ARM API versions.
Generate a local package for typed resources at an explicit version, or use
`azure-native.resources.Resource` when the resource or version is unavailable
in a typed SDK, including older versions unavailable through local packages.
From 3.268.0, `accepts_outputs_in_invoke` lets SDKs and providers exchange
dependency-carrying output values in `Invoke` arguments and responses. From
3.274.0, SDKs can set `uses_output_values` on `RegisterResourceRequest` for
per-leaf dependencies in inline `OutputValue`s. After transforms, top-level
`Dependencies` reflects explicit `depends_on` dependencies only.
## Authentication, observability, and Automation API
Use native OIDC login to exchange a workload token for a short-lived Cloud
access token. Register the issuer, configure an authorization policy and its
permissions, and have the issuer supply a token with the required audience.
```sh
pulumi login --oidc-token "$OIDC_TOKEN" --oidc-org my-org
```
The access token expires after two hours by default; `--oidc-expiration`
changes its lifetime. From 3.217.0, login can infer organization, team, and
user from JWT claims when present. `PULUMI_CREDENTIAL_STORE` selects opt-in
OS-backed encryption for stored CLI credentials from 3.258.0.
Every command saves automatic logs by default from 3.249.0. Use
`pulumi logs decrypt`, `pulumi logs ls`, `pulumi logs rm`, and `pulumi logs share`
to read, list, remove, and share captured logs. `--otel-traces` exports traces
to files or collectors; from 3.268.0, it also sends W3C `traceparent` headers
with Cloud API requests.
For a refresh dry run, use `await stack.previewRefresh()` in Node.js or
`stack.preview_refresh()` in Python; Python also exposes `stack.preview_destroy()`.
From 3.258.0, those Python preview methods accept an inline program. Go,
Node.js, and Python refresh support `--clear-pending-creates`.
From 3.272.0, providers can return `AwaitError` for an operation that still
needs awaiting. Deployment continues with unknown resource outputs and the
CLI exits with code `10` (`ExitAwaitError`). From 3.278.0, Node.js and Python
Automation API consumers can inspect `ResOpFailedEvent.awaited` to distinguish
an awaiting resource from a failure.
## Cloud policy and ESC operations
Use `pulumi policy analyze --file` with an exported state file from 3.249.0;
it needs neither stack selection nor backend login. For version 2 of
`--policy-pack-config` in 3.271.0, put per-policy settings under `policies`
and exemptions in `exceptions`. Hosted policy exception commands require
`PULUMI_EXPERIMENTAL=true` from 3.274.1.
`pulumi env setup aws`, `pulumi env setup azure`, and `pulumi env setup gcp`
configure cloud OIDC trust and create ESC environments from 3.261.0. From
3.270.0, environment editing commands detect intervening edits: `env edit`
reopens the editor with your changes and the current definition, while `env set`, `env rm`, and
`env provider` fail. From 3.278.0, `pulumi env edit` offers to submit a change
request when approval is required.