Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

🤖 Artificial Intelligence
☁️ Cloud and Infrastructure
💾 Data and Databases
💼 Professional Skills
🎯 Programming and Development
🔒 Security and Networking
📚 Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
© 2026 CheatGrid™. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Pulumi Programmatic IaC Cheat Sheet

Pulumi Programmatic IaC Cheat Sheet

Back to DevOps
Updated 2026-05-22
Next Topic: Release Management Cheat Sheet

Pulumi is an open-source infrastructure-as-code platform that lets you define, deploy, and manage cloud resources using general-purpose programming languages — TypeScript, Python, Go, C#, Java, and YAML. Unlike HCL-based tools, Pulumi programs are real code with loops, conditionals, classes, and package ecosystems. The core model maps Programs → Projects (defined by Pulumi.yaml) → Stacks (isolated deployment instances per environment) → Resources (cloud primitives created via provider SDKs). This cheat sheet covers the full surface: CLI workflows, configuration and secrets, inputs/outputs, resource options, component resources, Automation API, ESC, testing, CI/CD, and comparisons with Terraform.

What This Cheat Sheet Covers

This topic spans 20 focused tables and 146 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Core Concepts and Program StructureTable 2: CLI Commands and WorkflowsTable 3: Inputs and OutputsTable 4: Configuration and SecretsTable 5: Resource OptionsTable 6: Resource Naming and IdentityTable 7: State BackendsTable 8: Component Resources and PackagesTable 9: Stack References and Project OrganizationTable 10: Secrets Encryption ProvidersTable 11: Automation APITable 12: Pulumi ESC (Environments, Secrets, Configuration)Table 13: Dynamic ProvidersTable 14: Testing Pulumi ProgramsTable 15: CI/CD IntegrationTable 16: Pulumi Deployments and Drift DetectionTable 17: Terraform Bridge and Provider EcosystemTable 18: Pulumi vs Terraform / OpenTofu ComparisonTable 19: Pulumi Neo and AI FeaturesTable 20: Common Patterns and Anti-Patterns

Table 1: Core Concepts and Program Structure

Programs are written in any supported language and declare cloud resources using provider SDKs. A project is a folder containing a Pulumi.yaml file; a stack is one isolated deployment of that project (e.g., dev, staging, prod). Understanding the relationship between programs, projects, and stacks is the foundation of all Pulumi work.

CommandExampleDescription
Project file (Pulumi.yaml)
name: my-app
runtime: nodejs
description: My Pulumi app
• Root file that defines the project name, runtime, and description
• required in every Pulumi project directory
Stack
pulumi stack init dev
pulumi stack select prod
• An isolated deployment instance of a project
• each stack has its own config, state, and outputs
Resource declaration (TypeScript)
const bucket = new aws.s3.Bucket("my-bucket");
• Declares a cloud resource
• Pulumi registers it with the provider and tracks it in state
Resource declaration (Python)
bucket = aws.s3.Bucket("my-bucket")
• Same resource declaration pattern in Python
• positional arg is the logical name.

More in DevOps

  • Prometheus Cheat Sheet
  • Release Management Cheat Sheet
  • AI-Powered DevOps Copilots and Agents Cheat Sheet
  • Configuration Drift Cheat Sheet
  • GitOps Cheat Sheet
  • OpenTofu Open-Source Terraform Fork Cheat Sheet
View all 49 topics in DevOps