pulumi avatar

Pulumi Automation Api

Programmatic Pulumi control via the Automation API for multi-stack orchestration, self-service platforms, and embedded infrastructure.

skills.sh installs
1.3K
GitHub stars
80
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating and selecting stacks with LocalWorkspace, then running up, destroy, config, and output reads from code
  • Includes local-source and inline-source program patterns, plus multi-stack sequencing with reverse-order teardown and parallel deploys
  • Enforces explicit failure checks on summary.result and secret handling for config values set via setConfig
  • Designed for platform teams replacing fragile Bash or Makefile orchestration, or building internal portals that provision infrastructure

Install

$ npx -y skills add pulumi/agent-skills --skill pulumi-automation-api -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Pulumi Automation API

When to Use This Skill

Invoke this skill when:

  • Orchestrating deployments across multiple Pulumi stacks
  • Embedding Pulumi operations in custom applications
  • Building self-service infrastructure platforms
  • Replacing fragile Bash/Makefile orchestration scripts
  • Creating custom CLIs for infrastructure management
  • Building web applications that provision infrastructure

What is Automation API

Automation API provides programmatic access to Pulumi operations. Instead of running pulumi up from the CLI, you call functions in your code that perform the same operations.

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

// Create or select a stack
const stack = await automation.LocalWorkspace.createOrSelectStack({
    stackName: "dev",
    projectName: "my-project",
    program: async () => {
        // Your Pulumi program here
    },
});

// Run pulumi up programmatically
const upResult = await stack.up({ onOutput: console.log });
console.log(`Update summary: ${JSON.stringify(upResult.summary)}`);

When to Use Automation API

Good Use Cases

Multi-stack orchestration:

Details

Repository
github.com/pulumi/agent-skills
Category
DevOps & Cloud
First seen
May 16, 2026

More from pulumi/agent-skills

All 12

Similar to Pulumi Automation Api

More DevOps & Cloud