devops-pulumi
Use when the user asks about Pulumi, Pulumi stacks and config, state backends, ComponentResource, the Automation API, Pulumi ESC and secrets, CrossGuard…
от j4flmao★ 47 звёзд на GitHub
Установить devops-pulumi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Pulumi IaC
Purpose
Provision, manage, and version cloud infrastructure using Pulumi's programming language approach, enabling real code constructs (loops, conditionals, functions, classes) for infrastructure definition.
Agent Protocol
Trigger
Exact user phrases: "Pulumi", "IaC", "infrastructure as code", "Pulumi stack", "Pulumi AWS", "Pulumi Kubernetes", "Automation API", "component resource", "Pulumi state", "Pulumi migrate".
Input Context
Before activating, verify:
- Target cloud provider (AWS, Azure, GCP, Kubernetes) and region.
- Programming language preference (TypeScript, Python, Go, C#).
- Current state backend (Pulumi Cloud, S3, Azure Blob, GCS).
- Whether migrating from Terraform or creating new infrastructure.
Output Artifact
Writes to index.ts, __main__.py, main.go, Pulumi.yaml, Pulumi.{stack}.yaml, and component resource classes.
Response Format
Code files with Pulumi SDK imports, resource definitions, and stack configurations.
Completion Criteria
This skill is complete when:
- Pulumi project initialized with
pulumi new. - Core infrastructure resources defined with proper typing.
- Stack configurations for all environments (dev, staging, prod).
- State backend configured and validated.
-
pulumi uppreviews without errors.
Max Response Length
Direct file write. No response text.
Quick Start
pulumi new aws-typescript → Define VPC, subnets, security groups as classes → Configure dev/prod stacks via Pulumi.{stack}.yaml → pulumi up → Add component resources for reuse → Wire Automation API for self-service.
Decision Tree: Pulumi vs Terraform
- Starting fresh with IaC → Pulumi (if team knows TypeScript/Python/Go) or Terraform (if team knows HCL)
- Need loops, conditionals, functions → Pulumi (real programming language)
- Existing Terraform codebase → Terraform (migration is costly but possible with tf2pulumi)
- Self-service platform for dev teams → Pulumi Automation API
- Multi-cloud with same abstractions → Pulumi (component resources abstract cloud specifics)
- Policy enforcement on IaC → Both: Pulumi CrossGuard or Terraform Sentinel/OPA
- Kubernetes-native IaC → Pulumi (Kubernetes provider with CRDs, Helm charts native)
Core Workflow
Step 1: Initialize Project
pulumi new aws-typescript --name my-infra --stack dev
Step 2: Define Infrastructure with TypeScript
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";
const config = new pulumi.Config();
const vpcCidr = config.get("vpcCidr") || "10.0.0.0/16";
const environment = config.require("environment");
const vpc = new aws.ec2.Vpc("main", {
cidrBlock: vpcCidr,
enableDnsHostnames: true,
enableDnsSupport: true,
tags: { Name: "main", Environment: environment },
});
const subnets = config.requireObject<string[]>("availabilityZones").map((az, i) =>
new aws.ec2.Subnet(`public-${i}`, {
vpcId: vpc.id,
cidrBlock: `10.0.${i}.0/24`,
availabilityZone: az,
mapPublicIpOnLaunch: true,
tags: { Name: `public-${i}`, Environment: environment },
})
);
Step 3: Stack Configuration
# Pulumi.prod.yaml
config:
aws:region: us-east-1
my-infra:vpcCidr: 10.0.0.0/16
my-infra:instanceType: t3.large
my-infra:environment: production
my-infra:availabilityZones:
- us-east-1a
- us-east-1b
- us-east-1c
my-infra:dbPassword:
secure: AAABAA...encrypted...
Step 4: Component Resources
export interface VpcStackArgs {
cidrBlock: string;
azs: string[];
environment: string;
tags?: Record<string, string>;
}
export class VpcStack extends pulumi.ComponentResource {
public readonly vpc: aws.ec2.Vpc;
public readonly publicSubnets: aws.ec2.Subnet[];
public readonly privateSubnets: aws.ec2.Subnet[];
constructor(name: string, args: VpcStackArgs, opts?: pulumi.ComponentResourceOptions) {
super("my:infra:VpcStack", name, args, opts);
const tags = { ...args.tags, Environment: args.environment };
this.vpc = new aws.ec2.Vpc(`${name}-vpc`, {
cidrBlock: args.cidrBlock,
enableDnsHostnames: true,
enableDnsSupport: true,
tags: { ...tags, Name: `${name}-vpc` },
}, { parent: this });
this.publicSubnets = args.azs.map((az, i) =>
new aws.ec2.Subnet(`${name}-public-${i}`, {
vpcId: this.vpc.id,
cidrBlock: incrementCidr(args.cidrBlock, i),
availabilityZone: az,
mapPublicIpOnLaunch: true,
tags: { ...tags, Name: `${name}-public-${i}`, Type: "public" },
}, { parent: this })
);
this.privateSubnets = args.azs.map((az, i) =>
new aws.ec2.Subnet(`${name}-private-${i}`, {
vpcId: this.vpc.id,
cidrBlock: incrementCidr(args.cidrBlock, i + 100),
availabilityZone: az,
tags: { ...tags, Name: `${name}-private-${i}`, Type: "private" },
}, { parent: this })
);
this.registerOutputs({
vpcId: this.vpc.id,
publi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/automation-api.md
- references/aws-resources.md
- references/kubernetes-provider.md
- references/programming-models.md
- references/pulumi-advanced.md
- references/pulumi-fundamentals.md
- references/pulumi-testing.md
- references/state-backends.md
FAQ
Что делает скилл devops-pulumi?
Use when the user asks about Pulumi, Pulumi stacks and config, state backends, ComponentResource, the Automation API, Pulumi ESC and secrets, CrossGuard policy packs, or migrating from Terraform to Pulumi. Produces Pulumi programs in TypeScript, Python, Go or C#. Not for Terraform HCL (use terraform).
Как установить скилл devops-pulumi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-pulumi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…