AI for Pulumi
Write and troubleshoot Pulumi with AI — infrastructure as code in real languages: stacks and state, providers, config and secrets, component resources, testing, and CI/CD.
25 copy-paste prompts · 25 in-depth guides Jump to prompts Jump to guides
Prompts
- Advanced
Pulumi Automation API Programmatic Deployments Prompt
Design a programmatic deployment layer with the Pulumi Automation API — driving stacks from your own code or service — so you can build self-service infra, custom orchestration, and platform APIs without shelling out to the CLI.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi CI/CD Pipeline Design Prompt
Design a Pulumi CI/CD pipeline — preview on PR, gated apply on merge, per-environment promotion — so infrastructure changes are reviewed as diffs and deployed by automation, not laptops.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Component Resource Design Prompt
Design reusable Pulumi ComponentResources with typed inputs, clean outputs, and proper parenting so platform teams ship opinionated building blocks instead of copy-pasted resource soup.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Config & Secrets with ESC Prompt
Design Pulumi configuration and secret handling across stacks — including Pulumi ESC environments — so config is DRY, secrets stay encrypted, and no plaintext credential ever lands in git.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Cost Estimation & Guardrails Prompt
Add cost visibility and guardrails to Pulumi — estimate the spend impact of a change before apply and block cost blowouts in CI — so infrastructure cost is reviewed like any other diff.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Cross-Stack References & Outputs Prompt
Wire Pulumi stacks together with StackReferences and exported outputs so downstream stacks consume upstream infrastructure through a stable contract instead of hardcoded IDs or circular dependencies.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Drift Detection Prompt
Set up Pulumi drift detection with refresh and scheduled checks so out-of-band changes to your infrastructure are caught, triaged, and reconciled before they cause an incident.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Dynamic Providers Design Prompt
Design a Pulumi dynamic provider to manage a resource no existing provider covers — a SaaS API, internal service, or custom lifecycle — with correct create/update/delete and diff semantics.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Import of Existing Resources Prompt
Bring existing cloud resources under Pulumi management with pulumi import — generating code and adopting state — so clickops and legacy infrastructure become IaC without downtime or recreation.
- Claude
- ChatGPT
Open prompt - Advanced
Migrating from Terraform to Pulumi Prompt
Plan a Terraform-to-Pulumi migration — convert with tf2pulumi, adopt existing state, or run both side by side — so you move to real-language IaC without recreating live infrastructure.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Monorepo Layout Prompt
Structure a Pulumi monorepo — projects, shared component packages, and affected-stack CI — so many teams share one repo without slow, fragile, everything-deploys-on-every-commit pipelines.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Multi-Language Patterns Prompt
Choose a Pulumi language and apply idiomatic patterns — handling Output<T>, apply/all, async, and typing — in TypeScript, Python, Go, or C# so programs are readable and correct rather than fighting the SDK.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi CrossGuard Policy-as-Code Prompt
Author Pulumi CrossGuard policy packs that enforce security, tagging, and cost guardrails at preview and deploy time so non-compliant infrastructure is blocked before it exists.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Preview & Diff Review Prompt
Read a Pulumi preview like a code review — distinguishing safe updates from replacements and deletes — so a destructive change is caught in the plan instead of after the apply.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Project & Stack Design Prompt
Lay out a Pulumi project and its stacks — one program, many environments — so config, state, and blast radius are cleanly separated instead of forked per environment.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Provider Credential Injection Prompt
Inject cloud provider credentials into Pulumi securely — OIDC federation, ESC dynamic credentials, and per-environment scoping — so no long-lived cloud key ever sits in config, CI secrets, or a laptop.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Provider Setup & Versioning Prompt
Set up and pin Pulumi providers correctly — plugin versions, SDK versions, and explicit provider instances — so deployments are reproducible and a provider upgrade never surprises you with silent diffs.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi RBAC & Stack Permissions Prompt
Design Pulumi Cloud RBAC — teams, stack permissions, and environment boundaries — so engineers can deploy what they own and nothing else, with prod behind stricter gates than dev.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Refactoring with Aliases Prompt
Refactor a Pulumi program — renaming, re-parenting, and moving resources between components — using aliases so changes update in place instead of destroying and recreating live infrastructure.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Resource Options Review Prompt
Apply Pulumi resource options correctly — dependsOn, protect, ignoreChanges, aliases, deleteBeforeReplace, retainOnDelete — so ordering, protection, and refactors behave exactly as intended instead of causing surprise replacements.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi Secrets Encryption: KMS vs Passphrase Prompt
Choose and configure the Pulumi secrets encryption provider — passphrase, cloud KMS, or Pulumi Cloud — so secret config and state are encrypted with keys your team can rotate and audit.
- Claude
- ChatGPT
Open prompt - Advanced
Pulumi State Backend Choice Prompt
Choose and configure a Pulumi state backend — Pulumi Cloud vs self-managed S3/Azure Blob/GCS — with the right secrets provider, locking, and access control so state is durable, private, and team-safe.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Logging & Deployment Observability Prompt
Make Pulumi deployments observable — structured logs, event streaming, update metadata, and diagnostics — so failed or slow applies are debuggable and every change is auditable after the fact.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Teardown Safety Prompt
Tear down Pulumi stacks safely — protecting stateful resources, ordering deletes, and backing up data first — so `pulumi destroy` cleans up ephemeral environments without nuking something irreplaceable.
- Claude
- ChatGPT
Open prompt - Intermediate
Pulumi Unit & Integration Testing Prompt
Design a Pulumi test strategy — fast unit tests with mocks plus real integration tests — so component logic and deployed behavior are both verified before infrastructure changes ship.
- Claude
- ChatGPT
Open prompt
Guides
- · 8 min read
Pulumi Error: 'PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'PULUMI_ACCESS_TOKEN must be set for login during non-interactive CLI sessions' by providing a Pulumi Cloud access token in CI.
Read guide - · 8 min read
Pulumi Error: 'no valid credential sources for AWS Provider found' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi's 'no valid credential sources for AWS Provider found' error by configuring AWS credentials via aws configure, AWS_PROFILE, env vars, or SSO.
Read guide - · 8 min read
Pulumi Error: 'resource cannot be deleted because it is protected' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'cannot be deleted because it is protected. Set the protect resource option to false to delete this resource' — safely clear protect and delete.
Read guide - · 7 min read
Pulumi Error: 'could not find any node_modules folder' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'could not find any node_modules folder' — dependencies not installed. Run npm/yarn/pnpm install before pulumi up. Causes and fixes.
Read guide - · 8 min read
Pulumi Error: 'Duplicate resource URN ...; try giving it a unique name' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'Duplicate resource URN ...; try giving it a unique name' — two resources share the same type and name; give each a unique logical name.
Read guide - · 8 min read
Pulumi Error: 'failed to load language plugin nodejs' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'failed to load language plugin nodejs: fork/exec: no such file or directory' — missing pulumi-language-nodejs, wrong runtime, or Node off PATH.
Read guide - · 9 min read
Pulumi Error: 'failed to register new resource ...: Resource monitor has terminated, shutting down' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'failed to register new resource: Resource monitor has terminated, shutting down' — find the real provider or resource-arg error behind it.
Read guide - · 8 min read
Pulumi Error: 'Preview failed: resource does not exist' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'Preview failed: resource does not exist' during pulumi import — the cloud ID the provider looked up cannot be found. Diagnose and resolve it.
Read guide - · 7 min read
Pulumi Error: 'invalid configuration key: dbPassword. A configuration key must be of the form namespace:name' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'invalid configuration key: dbPassword. A configuration key must be of the form namespace:name' by prefixing keys with the project name.
Read guide - · 8 min read
Pulumi Error: 'Missing required configuration variable' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'Missing required configuration variable myproject:dbPassword' by setting the stack config value the program requires with pulumi config set.
Read guide - · 7 min read
Pulumi Error: 'no Pulumi.yaml project file found' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'no Pulumi.yaml project file found' — run pulumi inside your project directory or create a valid Pulumi.yaml with pulumi new.
Read guide - · 8 min read
Pulumi Error: 'no stack named dev found' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'no stack named dev found' by creating the stack with pulumi stack init or logging into the correct backend and organization.
Read guide - · 8 min read
Pulumi Error: 'passphrase must be set with PULUMI_CONFIG_PASSPHRASE' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE' by exporting the stack passphrase before running commands.
Read guide - · 9 min read
Pulumi Error: 'Running program failed with an unhandled exception' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'Running program failed with an unhandled exception' when your Node.js/TypeScript Pulumi program throws an uncaught error. Causes and fixes.
Read guide - · 8 min read
Pulumi Error: 'unable to find virtual environment; run pulumi install or python -m venv venv' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi's 'unable to find virtual environment; run pulumi install or python -m venv venv' error by creating the venv and installing your Python deps.
Read guide - · 8 min read
Pulumi Error: 'error reading from server: EOF' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'error reading from server: EOF' when the connection to Pulumi Cloud or your state backend drops mid-operation. Causes and fixes.
Read guide - · 8 min read
Pulumi Error: 'resource monitor shut down while sending resource registration' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi's 'resource monitor shut down while sending resource registration' error, usually a cascade from an earlier fatal error or a crashed program.
Read guide - · 9 min read
Pulumi Error: 'rpc error: code = Unavailable ... connection refused' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'rpc error: code = Unavailable desc = connection error ... connection refused' — the provider gRPC subprocess crashed or is unreachable.
Read guide - · 9 min read
Pulumi Error: 'snapshot integrity failure; refusing to use it' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'snapshot integrity failure; refusing to use it: child resource refers to missing parent' — repair or restore a corrupted state snapshot safely.
Read guide - · 8 min read
Pulumi Error: 'stack dev already exists' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'stack dev already exists' by selecting the existing stack instead of pulumi stack init, or choosing a new unique stack name.
Read guide - · 8 min read
Pulumi Error: 'the stack is currently locked by 1 lock(s)' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'the stack is currently locked by 1 lock(s)' — clear an abandoned state-backend lock with pulumi cancel and safely resume your update.
Read guide - · 8 min read
Pulumi Error: 'rpc error: code = Unavailable desc = transport is closing' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'rpc error: code = Unavailable desc = transport is closing' — the provider process died mid-deployment, often from OOM. Diagnose and resolve it.
Read guide - · 8 min read
Pulumi Error: 'Cannot read properties of undefined (reading apply)' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi TypeError: Cannot read properties of undefined (reading 'apply') in TypeScript — Output ordering, undefined values, and misordered imports.
Read guide - · 8 min read
Pulumi Error: 'unknown resource type aws:s3/bucketv2:BucketV2' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi 'unknown resource type aws:s3/bucketv2:BucketV2' — correct the resource token or install/pin the provider plugin version that defines it.
Read guide - · 9 min read
Pulumi Error: 'unmarshalling properties: expected a value of type but got' — Cause, Fix, and Troubleshooting Guide
Fix Pulumi's 'unmarshalling properties: unmarshalling value: expected a value of type but got' error caused by a type mismatch in resource inputs or state.
Read guide