Skip to content

Infrastructure-as-code skills for Pulumi projects that validate changes with preview before deploy.

CCM score
39 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds three skills: pulumi-basics, pulumi-components, and pulumi-stacks for Pulumi work
  • Covers project structure, reusable components, and stack management across development, staging, and production
  • Runs a hook that validates projects containing Pulumi.yaml using pulumi preview
  • Designed for teams provisioning cloud resources with Pulumi in general-purpose programming languages

Pulumi infrastructure-as-code validation and best practices

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install pulumi@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Pulumi Basics

Infrastructure-as-code using real programming languages with Pulumi.

Project Structure

my-infrastructure/
├── Pulumi.yaml       # Project file
├── Pulumi.dev.yaml   # Stack config
├── index.ts          # Main program
└── package.json

Pulumi.yaml

name: my-infrastructure
user-invocable: false
runtime: nodejs
description: My infrastructure project

TypeScript Example

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

// Create VPC
const vpc = new aws.ec2.Vpc("main", {
    cidrBlock: "10.0.0.0/16",
    enableDnsHostnames: true,
    tags: {
        Name: "main-vpc",
    },
});

// Create subnet
const subnet = new aws.ec2.Subnet("public", {
    vpcId: vpc.id,
    cidrBlock: "10.0.1.0/24",
    availabilityZone: "us-east-1a",
});

// Export outputs
export const vpcId = vpc.id;
export const subnetId = subnet.id;

Common Commands

# Create new project
pulumi new aws-typescript

# Preview changes
pulumi preview

# Apply changes
pulumi up

# Destroy resources
pulumi destroy

# View stack outputs
pulumi stack output

Configuration

# Set config
pulumi config set aws:region us-east-1

# Set secret
pulumi config set --secret dbPassword mySecret123

# Get config
pulumi config get aws:region

Best Practices

Use Stack References

const infraStack = new pulumi.StackReference("org/infra/prod");
const vpcId = infraStack.getOutput("vpcId");

Component Resources

class MyApp extends pulumi.ComponentResource {
    constructor(name: string, args: MyAppArgs, opts?: pulumi.ComponentResourceOptions) {
        super("custom:app:MyApp", name, {}, opts);
        
        // Create resources
    }
}

Readme

Pulumi

Pulumi infrastructure-as-code validation and best practices.

Features

  • Validates Pulumi projects with pulumi preview
  • Provides skills for working with Pulumi

Requirements

Install Pulumi:

# macOS
brew install pulumi/tap/pulumi

# Linux
curl -fsSL https://get.pulumi.com | sh

Skills Included

  • pulumi-basics: Pulumi project structure and usage

Hook Behavior

Validates Pulumi projects in directories containing Pulumi.yaml using pulumi preview.

Installation

han plugin install pulumi

Details

Marketplace
TheBushidoCollective/han
Source
plugins/tools/pulumi
Category
Tool
Keywords
pulumi, infrastructure, iac, devops
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to pulumi

More DevOps & Cloud