pulumi
Assists with defining and managing cloud infrastructure using Pulumi with TypeScript, Python, Go, or C#. Use when provisioning AWS, GCP, Azure, or Kubernetes…
by TerminalSkills★ 221 GitHub stars
Install pulumi in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Pulumi
Overview
Pulumi enables defining and managing cloud infrastructure using real programming languages (TypeScript, Python, Go, C#) instead of domain-specific languages. It supports 150+ cloud providers and allows using loops, conditionals, classes, and packages to build reusable, testable infrastructure components.
Instructions
- Install the CLI with a package manager:
brew install pulumi/tap/pulumi(macOS/Linux),choco install pulumiorwinget install --exact --id Pulumi.Pulumi(Windows). Or download a release tarball fromgithub.com/pulumi/pulumi/releasesand check it against thepulumi-<version>-checksums.txtfile in the same release (sha256sum -c) before extracting. Current release: 3.272 (October 2026). - Pick a backend:
pulumi loginuses Pulumi Cloud (CI setsPULUMI_ACCESS_TOKEN);pulumi login file://~/.pulumi-statekeeps state in a local directory;pulumi login s3://my-team-pulumi-stateuses a bucket. Local and bucket backends encrypt secrets with a passphrase: setPULUMI_CONFIG_PASSPHRASE(orPULUMI_CONFIG_PASSPHRASE_FILE) in non-interactive runs. - Scaffold:
pulumi new aws-typescript(alsoaws-python,aws-go,azure-typescript,gcp-python,kubernetes-typescript,typescript...). Thenpulumi installto fetch dependencies and plugins if the template did not already, andpulumi stack init dev. - Preview, deploy, inspect:
pulumi preview --diff,pulumi up(add--yesonly in CI),pulumi stack output,pulumi destroy.pulumi refreshsyncs state with the real cloud;pulumi importadopts existing resources;pulumi up --target <urn>limits an update. - Resources and outputs: declare resources with
new aws.s3.Bucket("assets", {...}). A property of another resource is anOutput<T>, not a plain value: transform it with.apply()or thepulumi.interpolatetagged template. Passing an output as another resource's input creates the dependency automatically. A secret stays secret throughapply. - Config and secrets:
pulumi config set aws:region eu-west-1,pulumi config set --secret dbPassword ..., read withconfig.requireSecret("dbPassword"). Secrets are stored encrypted inPulumi.<stack>.yaml;pulumi stack output --show-secretsreveals them. Prefer Pulumi ESC environments (pulumi env) or OIDC for cloud credentials rather than long-lived keys. - Stacks: one stack per environment (
dev,staging,prod) with per-stack config. Share values withnew pulumi.StackReference("my-org/network/prod")and.getOutput("vpcId"). - Component resources: extend
pulumi.ComponentResource, callsuper("org:module:Type", name, {}, opts), create children with{ parent: this }, and finish withthis.registerOutputs({...}). - Policy (CrossGuard): write a policy pack with
@pulumi/policy(or the Python package) and run it aspulumi preview --policy-pack ./policyorpulumi up --policy-pack ./policy. - Unit tests:
pulumi.runtime.setMocks({ newResource, call }, project, stack, dryRun)before importing the code under test, then assert on resource outputs with Vitest, Jest or pytest. No cloud calls are made.
Examples
Example 1: Stack with secret config and a reusable component
User request: "Start a Pulumi TypeScript project for the billing service with a dev stack and a secret DB password"
mkdir billing-infra && cd billing-infra
pulumi new aws-typescript --name billing-infra --stack dev --yes # also creates the dev stack and installs @pulumi/aws
pulumi config set --secret dbPassword "correct-horse-battery-staple"
pulumi up --yes
pulumi stack output
// site.ts
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
export class StaticSite extends pulumi.ComponentResource {
public readonly bucketName: pulumi.Output<string>;
constructor(name: string, opts?: pulumi.ComponentResourceOptions) {
super("billing:web:StaticSite", name, {}, opts);
const bucket = new aws.s3.Bucket(`${name}-assets`, {}, { parent: this });
this.bucketName = bucket.bucket;
this.registerOutputs({ bucketName: this.bucketName });
}
}
// index.ts (replaces the generated one)
import * as pulumi from "@pulumi/pulumi";
import { StaticSite } from "./site";
const config = new pulumi.Config();
const dbPassword = config.requireSecret("dbPassword");
const site = new StaticSite("portal");
export const bucketName = site.bucketName;
export const passwordLength = dbPassword.apply((p) => p.length); // output stays a secret
Result: pulumi preview lists the stack, the component and its child bucket as creates; after pulumi up the outputs show bucketName and passwordLength [secret]. (The component and secret-config flow were run against a local backend with the random provider; the AWS bucket needs real credentials.)
Example 2: Share a network stack and enforce policy
User request: "The api stack n
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- _scores.json
FAQ
What does the pulumi skill do?
Assists with defining and managing cloud infrastructure using Pulumi with TypeScript, Python, Go, or C#. Use when provisioning AWS, GCP, Azure, or Kubernetes resources with real programming languages instead of HCL. Trigger words: pulumi, infrastructure as code, iac, pulumi up, pulumi stack, cloud infrastructure, component resource.
How do I install the pulumi skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pulumi skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…