Pulumi - Infrastructure as Code

VerifiedSafe

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. Supports 150+ cloud providers and enables reusable, testable infrastructure components.

Sby Skills Guide Bot
DevOpsIntermediate
6/2/2026
Claude Code
#pulumi#infrastructure-as-code#cloud#multi-cloud

Recommended for

Automated summary

Helps define and manage cloud infrastructure using Pulumi with real programming languages like TypeScript, Python, Go, or C#.

Strengths

  • Uses real programming languages instead of HCL, enabling loops and conditionals
  • Supports 150+ cloud providers including AWS, GCP, Azure, and Kubernetes
  • Encourages reuse with Component Resources and cross-stack references
  • Integrates unit testing and CrossGuard policies for compliance

Limitations

  • Requires Pulumi CLI and language runtime knowledge
  • Stack and secret management can be complex for newcomers
  • Debugging is sometimes trickier than Terraform due to the extra abstraction layer
When to use it

Use Pulumi when you prefer programming languages for infrastructure as code and need reusable, testable components.

When not to use it

Avoid Pulumi if your team is already proficient with Terraform or HCL, or for very small projects that don't need general-purpose language features.

Security analysis

Safe
Quality score92/100

The skill provides instructional guidance on using Pulumi for infrastructure as code. It does not contain any commands or instructions that would directly cause harm, exfiltrate data, or bypass security measures. It focuses on best practices like using secrets and testing.

No concerns found

How this analysis is made

Examples

Deploy a serverless API on AWS
Set up an AWS Lambda API with DynamoDB using Pulumi and TypeScript
Create a reusable VPC component
Build a reusable VPC module with Pulumi that teams can share

name: pulumi description: >- 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. license: Apache-2.0 compatibility: "Requires Pulumi CLI and a supported language runtime (Node.js, Python, Go, .NET)" metadata: author: terminal-skills version: "1.0.0" category: devops tags: ["pulumi", "infrastructure-as-code", "cloud", "devops", "multi-cloud"]

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

  • When creating resources, declare them as objects (e.g., new aws.s3.Bucket("my-bucket", {...})) and use pulumi.Output<T> with .apply() for computed values from cloud API responses.
  • When managing environments, use stacks (pulumi stack init dev/staging/prod) with stack-specific config for instance sizes, replica counts, and feature flags.
  • When handling secrets, always use pulumi config set --secret for credentials and never hardcode secrets in code.
  • When building reusable patterns, create Component Resources by extending pulumi.ComponentResource to encapsulate common infrastructure patterns (VPC module, ECS service, etc.).
  • When referencing across projects, use Stack References to read outputs from other stacks for cross-project dependencies.
  • When enforcing compliance, use CrossGuard policies to prevent non-compliant resources (e.g., no public S3 buckets, require encryption) in CI.
  • When testing, write unit tests for Component Resources using standard test frameworks (Vitest, pytest, go test) by mocking the cloud provider and asserting resource properties.

Examples

Example 1: Deploy a serverless API on AWS

User request: "Set up an AWS Lambda API with DynamoDB using Pulumi and TypeScript"

Actions:

  1. Scaffold project with pulumi new aws-typescript
  2. Define DynamoDB table and Lambda function resources
  3. Create API Gateway routes linked to Lambda handlers
  4. Export endpoint URL as a stack output for consumption

Output: A serverless API with infrastructure defined and deployed via pulumi up.

Example 2: Create a reusable VPC component

User request: "Build a reusable VPC module with Pulumi that teams can share"

Actions:

  1. Create a Component Resource class extending pulumi.ComponentResource
  2. Define VPC, subnets, route tables, and NAT gateway as child resources
  3. Expose outputs for subnet IDs and security group references
  4. Write unit tests mocking AWS provider to validate configuration

Output: A reusable infrastructure component that teams import as a package.

Guidelines

  • Use Component Resources for reusable patterns; do not repeat VPC/ECS/RDS configs across stacks.
  • Always use pulumi config set --secret for credentials; never hardcode secrets in code.
  • Name resources with the project and stack for unique identification across environments.
  • Export important outputs (URLs, endpoints, ARNs) for cross-stack consumption.
  • Write unit tests for Component Resources by mocking the cloud provider and asserting resource properties.
  • Use stack-specific config for environment differences: instance sizes, replica counts, feature flags.
  • Enable CrossGuard policies in CI to prevent non-compliant resources from being deployed.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/pulumi-infrastructure-as-code-mmh8qrrt/download' --output '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md.part' && mv '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md.part' '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Environment declared by the author: Requires Pulumi CLI and a supported language runtime (Node.js, Python, Go, .NET)

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md' && test -s '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pulumi' && cp -R '.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt' '.claude/skills/pulumi'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt'

openskills read 'pulumi-infrastructure-as-code-mmh8qrrt'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/pulumi-infrastructure-as-code-mmh8qrrt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills