create-pulumi-stack

Create and extend Pulumi infrastructure stacks for Azure with cross-stack references.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/omattsson/iac-bootstrap --skill create-pulumi-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pulumi-stack
Source: https://github.com/omattsson/iac-bootstrap/tree/main/examples/azure-pulumi/.github/skills/create-pulumi-stack
Command: npx skills add https://github.com/omattsson/iac-bootstrap --skill create-pulumi-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating and managing Pulumi infrastructure stacks for Azure often leads to inconsistent structures, configuration errors, and missed organizational best practices, especially when adhering to a standardized hierarchy like Contoso's.

Core Features & Use Cases

  • Stack Creation & Extension: Scaffold new Pulumi stacks (networking, security, application) or add new Azure resources to existing stacks while following Contoso's defined infrastructure hierarchy.
  • Reusable Component Resources: Create shared ComponentResource classes for common Azure resources that can be reused across multiple stacks to reduce duplication and enforce consistency.
  • Safe Cross-Stack References: Wire dependencies between stacks using StackReference with built-in plan-time safety handling for null outputs to prevent deployment failures.
  • Use Case Example: Use this skill to quickly add a new Azure Key Vault to an existing security stack, or scaffold a complete new networking stack with correct Pulumi configuration, dependencies, and secret management setup.

Quick Start

Use the create-pulumi-stack skill to add a new Azure Key Vault resource to your existing dev security stack following Contoso's component standards.

Frequently Asked Questions about create-pulumi-stack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Pulumi stack for Azure without manual configuration errors?

To create a new Pulumi stack for Azure without manual configuration errors, you can scaffold new infrastructure stacks like networking or security. This process enforces a standardized hierarchy and validates stack configuration prior to deployment to ensure consistent structures.

How do I add Azure resources to an existing Pulumi stack?

You can add Azure resources to an existing Pulumi stack by extending the current infrastructure. This ensures new resources like an Azure Key Vault follow organizational component standards and defined infrastructure hierarchy requirements during the extension.

How do I handle null outputs when wiring dependencies between Pulumi stacks?

To handle null outputs when wiring dependencies between Pulumi stacks, use StackReference with built-in plan-time safety handling. This mechanism prevents deployment failures caused by missing or null cross-stack reference outputs during the planning phase.

Can I create reusable infrastructure patterns for Azure in Pulumi?

Yes, you can create reusable infrastructure patterns for Azure in Pulumi by building shared ComponentResource classes. These components reduce duplication and enforce consistency across multiple infrastructure stacks during resource provisioning.

What is the best way to enforce a standard infrastructure hierarchy in Pulumi?

The best way to enforce a standard infrastructure hierarchy in Pulumi is to automate stack creation and resource extension. This eliminates inconsistent structures by validating configurations and enforcing organizational best practices prior to deployment preview.