/pulumi:pulumi-escfrom Pulumi
Manages Pulumi ESC for centralized secrets, configuration, environments, OIDC credentials, and secret store integration (AWS Secrets Manager, Azure Key Vault, HashiCorp Vault, 1Password). Activates on Pulumi ESC CLI commands or YAML environment config.
Ships in Pulumi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pulumi ESC is a centralized service for managing environments, secrets, and configuration across cloud infrastructure and applications.
ESC enables teams to:
# Create a new environment
pulumi env init <org>/<project-name>/<environment-name>
# Edit environment (opens in editor)
pulumi env edit <org>/<project-name>/<environment-name>
# Set values
pulumi env set <org>/<project-name>/<environment-name> <key> <value>
pulumi env set <org>/<project-name>/<environment-name> <key> <value> --secret
# View definition (secrets hidden)
pulumi env get <org>/<project-name>/<environment-name>
# Open and resolve (reveals secrets)
pulumi env open <org>/<project-name>/<environment-name>
# Run command with environment
pulumi env run <org>/<project-name>/<environment-name> -- <command>
# Link to Pulumi stack
pulumi config env add <project-name>/<environment-name>
pulumi env get: Shows static definition, secrets appear as [secret]pulumi env open: Resolves and reveals all values including secrets and dynamic credentialspulumi env run: Executes commands with environment variables loadedpulumi config env add: Only takes the / portionEnvironments are YAML documents with reserved top-level keys:
imports: Import and compose other environmentsvalues: Define configuration and secretsReserved sub-keys under values:
environmentVariables: Map values to shell environment variablespulumiConfig: Configure Pulumi stack settingsfiles: Generate files with environment dataimports:
- common/base-config
values:
environment: production
region: us-west-2
dbPassword:
fn::secret: super-secure-password
environmentVariables:
AWS_REGION: ${region}
DB_PASSWORD: ${dbPassword}
pulumiConfig:
aws:region: ${region}
app:dbPassword: ${dbPassword}
Use the fn::open::pulumi-stacks provider to consume another stack's outputs. The
stacks and network keys below are arbitrary names you choose. Once the function
resolves, it replaces stacks.network with the named stack's outputs — so the
output names (vpcId, subnetIds) do not appear in the static YAML; they come from
whatever the producer stack exports. Two things are easy to get wrong:
stack: <project>/<stackName>
field — not separate projectName/stackName fields..outputs. level
(use ${stacks.network.vpcId}, not ${stacks.network.outputs.vpcId}).Example — replace the stack name and output names with your own:
values:
stacks:
fn::open::pulumi-stacks:
stacks:
network: # arbitrary local name for the referenced stack
stack: my-project/dev # producer stack to read outputs from
pulumiConfig:
# vpcId / subnetIds are whatever the producer stack exports; after the function
# resolves they are available directly under `stacks.network` (no `.outputs.`).
vpcId: ${stacks.network.vpcId}
subnetIds: ${stacks.network.subnetIds}
Full schema: https://www.pulumi.com/docs/esc/providers/pulumi-stacks/
The console URL for an environment is
https://app.pulumi.com/<org>/esc/<project>/<environment>. The route segment is
esc, not environments.
If the user asks basic questions like "How do I create an environment?" or "What's the difference between get and open?", answer directly using the information above.
When users need more information, use the web-fetch tool to get content from the official Pulumi ESC documentation:
fn::open::pulumi-stacks): https://www.pulumi.com/docs/esc/providers/pulumi-stacks/pulumi env subcommands over esc CLI.Use the web-fetch tool with specific prompts to extract relevant information from these docs.
When helping users:
pulumi env commands to list environments or read definitionspulumi env get or pulumi preview
a. Only use pulumi env open when the full resolved values are needed, but use cautiously as it reveals secrets.User: "How do I set up AWS OIDC credentials in ESC?"
1. Use the web-fetch tool to get AWS OIDC documentation from "https://www.pulumi.com/docs/esc/integrations/dynamic-login-credentials/aws-login/"
2. Provide the user with the configuration
3. Ask the user if they have a pre-defined role or need one created for them
4. Set up as much of the environment as possible, then guide them through any steps that you can't do for them
5. Help them test with `pulumi env get` or `pulumi env open` if necessary
pulumi env init my-org/my-project/dev-config
# Edit environment (accepts new definition from a file, better for agents, more difficult for users)
pulumi env edit --file /tmp/example.yml my-org/my-project/dev-config
pulumi config env add my-project/dev-config
pulumi config # Verify environment values are accessible
Always prefer CLI commands. Only use the API when absolutely necessary (e.g., bulk operations, automation).
Available API endpoints include:
GET /api/esc/environments/{orgName} - List environmentsGET /api/esc/environments/{orgName}/{projectName}/{envName} - Read environment definitionGET /api/esc/providers?orgName={orgName} - List available providersUse the pulumi api CLI subcommand to make requests when needed, e.g. pulumi api /api/esc/providers -F orgName={orgName}.
fn::secret for sensitive values<org>/my-app/production-aws not <org>/app/prodpulumi config shows expected values after linking an environment to a stackpulumi env run for commands needing environment variablespulumi env open when absolutely necessary, as it reveals secretspulumi config env add) without explicit user confirmation, and never pass --yes.Start with the remediation in the error message. An expired or missing login usually just needs the user to re-authenticate, and most providers name the fix or the command:
Failed to refresh cached SSO credentials. Please refresh SSO login.
→ aws sso loginExpiredToken: The security token included in the request is expired → refresh the session or keysaz logingcloud auth application-default loginpulumi loginRelay the fix and have the user retry. If the error does not name a remediation
(for example a bare Unable to locate credentials, or an access-denied that may
mean the wrong account or profile rather than an expired login), don't guess —
identify how the project authenticates (provider config, the active profile, any
linked ESC environment) and address that.
Changing where the project gets its credentials (adding or switching an ESC environment, editing provider config) is a deliberate change, not a reflexive fix for an expired session. Do it only if the user wants it, and follow the rules below.
Do not pick an environment because its name looks relevant (*-aws-oidc,
*-creds, *-workshop, etc.). A matching name does not mean it is the right
one or that it belongs to this user's work.
Before proposing any existing environment:
pulumi env get <org>/<project>/<env>.roleArn names a specific AWS account — if it points
at a different account (a shared workshop, an instructor role, another team),
it is the wrong environment and will run operations against the wrong account
or fail.pulumi config env add edits the stack config (Pulumi.<stack>.yaml) and
changes the credentials Pulumi operations run under. Never run it without
explicit user confirmation, and never pass --yes to skip that confirmation.
Tell the user what will change and let them decide.
After linking, resolved credential values often show as [unknown] until the
environment is opened or run. Do not claim the error is fixed or that the next
operation will succeed until you have verified it — check pulumi config, and
confirm the credentials resolve to the expected account before declaring success.
pulumi env ls -o <org>pulumi env open not pulumi env getpulumi config env ls to ensure the stack is listed.
pulumi env get <org>/<project-name>/<environment-name>.pulumiConfig key exists and is nested under the values key.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pulumi-esc, secrets-management, oidc, environment-config, pulumi-stacks
18 skills in this plugin
/cloudformation-to-pulumiConvert, migrate, or import AWS CloudFormation stacks or templates into Pulumi programs. Load this skill whenever a user wants to move from CloudFormation to Pulumi, convert a CFN template, import existing CloudFormation-managed resources into Pulumi, or asks about CloudFormation-to-Pulumi migration in any form. Also load when the user mentions cdk-importer in a migration context./package-usageTrack which stacks across a Pulumi organization use a specific package and at what versions. Use for cross-stack audits, identifying outdated or unmaintained package versions across many stacks, finding affected stacks before publishing breaking changes to a component package, or planning coordinated upgrade rollouts. Do NOT use for upgrading a cloud provider package (pulumi-aws, pulumi-azure-native, pulumi-gcp, pulumi-kubernetes, etc.) in a single project — use skill `provider-upgrade` instead. Do NOT use for general infrastructure creation, resource provisioning, or how-to questions about a package./provider-upgradeUpgrade any Pulumi provider to a newer version and reconcile the resulting diff. Use when users want to upgrade or update a provider (including editing package.json, requirements.txt, pyproject.toml, go.mod, or Pulumi.yaml to bump a provider SDK), check for breaking changes before or during an upgrade, fix resources that broke after a provider upgrade, or resolve unexpected replacements, creates, or deletes in a post-upgrade preview, including pulumi-gcp v10 errors such as a missing gcp.notebooks or gcp.iap.Brand type or a required secretDataWoVersion. Applies to all providers (aws, azure-native, gcp, kubernetes, aws-native, cloudflare, datadog, etc.) — not just Tier 1. Do NOT use for querying which stacks use what package versions; use skill `package-usage` for cross-stack audits. Do NOT use for general infrastructure tasks.
/pulumi-arm-to-pulumiConvert or migrate Azure ARM (Azure Resource Manager) templates, Bicep templates, or code to Pulumi, including importing existing Azure resources. This skill MUST be loaded whenever a user requests migration, conversion, or import of ARM templates, Bicep templates, ARM code, Bicep code, or Azure resources to Pulumi./pulumi-automation-apiLoad this skill when a user asks how to run Pulumi programmatically, embed Pulumi in an application, orchestrate multiple stacks in code, build a self-service infrastructure portal, replace pulumi CLI shell scripts with code, or use the Pulumi Automation API (LocalWorkspace, createOrSelectStack, inline programs). Also load for questions about multi-stack sequencing, parallel deployments, or passing outputs between stacks via code./pulumi-best-practicesLoad when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or is configuring a pulumi preview/up CI workflow. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.npx claudepluginhub pulumi/agent-skills --plugin pulumiOther plugins' skills for the same job