From fb83e7b10eaa0a4a4857c1fa13923f4fa18164be Mon Sep 17 00:00:00 2001 From: Anton Flor Date: Tue, 14 Jul 2026 16:34:44 -0500 Subject: [PATCH 01/26] Add Pulumi cheat sheet --- pulumi.md | 304 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 pulumi.md diff --git a/pulumi.md b/pulumi.md new file mode 100644 index 0000000..512c834 --- /dev/null +++ b/pulumi.md @@ -0,0 +1,304 @@ +# Pulumi Cheat Sheet + +> **Applies to:** Pulumi CLI 3.x and Pulumi Infrastructure as Code +> **Last reviewed:** 2026-07-14 + +A practical reference for projects, stacks, configuration, previews, deployments, drift reconciliation, imports, state recovery, and CI usage. + +> [!WARNING] +> Pulumi commands operate against the currently selected stack. Run `pulumi stack` and verify the organization, project, stack, cloud account, and region before changing infrastructure. + +## Core concepts + +| Concept | Meaning | +|---|---| +| Project | A Pulumi program described by `Pulumi.yaml` | +| Stack | An isolated instance of a project, such as `dev`, `stage`, or `prod` | +| Resource | A cloud, Kubernetes, SaaS, or custom object managed by Pulumi | +| Configuration | Per-stack values stored in `Pulumi..yaml` | +| Secret | An encrypted configuration value or output | +| State | Pulumi's record of managed resources and their relationships | +| Backend | Pulumi Cloud or a self-managed object-storage/filesystem backend | + +## Installation and identity + +```bash +pulumi version +pulumi about +pulumi login +pulumi whoami +``` + +Log in to a self-managed backend: + +```bash +pulumi login s3:/// +pulumi login azblob:/// +pulumi login gs:/// +pulumi login file:// +``` + +Do not casually switch backends. Confirm that the intended stacks exist in the destination backend before running an update. + +## Create a project + +```bash +pulumi new +pulumi new