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 · 50 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: 'command failed' From the Automation API
Fix Pulumi Automation API 'CommandError: code: 255, stderr' failures wrapping pulumi up/preview: surface the real error, stream logs, and handle concurrent-update conflicts.
Read guide - · 8 min read
Pulumi Error: 'No Stack Selected; Run pulumi stack select'
Fix Pulumi 'no stack selected; please use pulumi stack select' when reading config or running up: select or init a stack, and set --stack in CI non-interactively.
Read guide - · 8 min read
Pulumi Error: 'The Stack's Checkpoint Is Corrupt' Snapshot Integrity
Fix Pulumi 'the stack's checkpoint is corrupt' and snapshot integrity errors: diagnose bad state, repair with stack export/import, and recover a stack safely.
Read guide - · 8 min read
Pulumi Error: Error Thrown Inside a ComponentResource Constructor
Fix Pulumi 'exception in ComponentResource constructor' and missing registerOutputs errors: diagnose thrown constructor code, super() ordering, and unresolved child outputs.
Read guide - · 8 min read
Pulumi Error: 'could not decrypt configuration value' Wrong Passphrase or Secrets Change
Fix Pulumi's 'could not decrypt configuration value' error: recover from a wrong PULUMI_CONFIG_PASSPHRASE, a rotated KMS key, or a changed secrets provider so encrypted config decrypts again.
Read guide - · 8 min read
Pulumi Error: 'cannot delete resource because it still has dependencies' During Destroy
Fix Pulumi's 'cannot delete resource ... because it still has dependencies' error on destroy: understand dependency ordering, deleteBeforeReplace, and how to unblock a stuck teardown safely.
Read guide - · 8 min read
Pulumi Error: 'Diff Failed' Provider Panic During Preview or Up
Fix Pulumi 'Diff failed' and provider 'panic: runtime error' crashes during preview/up: diagnose plugin crashes, version mismatches, and malformed inputs.
Read guide - · 8 min read
Pulumi Error: '.NET build failed' — C# Program Compile Fix
Fix Pulumi '.NET build failed' running a C# program: missing SDK, NuGet restore failures, csproj target framework, and compile errors surfaced during preview.
Read guide - · 8 min read
Pulumi Error: 'failed to load language plugin go' Go Toolchain/Build Failure
Fix Pulumi's 'failed to load language plugin go' error: repair a missing Go toolchain, broken go.mod, or compile failure so pulumi up can build and run your Go program.
Read guide - · 8 min read
Pulumi Error: 'failed to load language plugin python' Virtualenv/Toolchain Not Found
Fix Pulumi's 'failed to load language plugin python' error: repair a missing virtualenv, wrong toolchain setting, or unset PATH so pulumi up finds Python again.
Read guide - · 8 min read
Pulumi Error: 'go.mod file not found' — Go Program Module Init Fix
Fix Pulumi 'go.mod file not found in current directory or any parent directory' for a Go program: missing go mod init, wrong project dir, and GO111MODULE issues.
Read guide - · 8 min read
Pulumi Error: 'inputs to import do not match the existing resource'
Fix Pulumi import's 'inputs to import do not match the existing resource' error: align your program's arguments with the live resource so pulumi import adopts it cleanly.
Read guide - · 8 min read
Pulumi Error: 'invalid provider configuration' / Missing Required Provider Argument
Fix Pulumi explicit provider 'invalid provider configuration' and 'missing required argument' errors: supply region/credentials, wire the provider on resources, and validate config.
Read guide - · 8 min read
Pulumi Error: 'the stack has pending operations' After an Interrupted Update
Fix Pulumi 'the current deployment has X resource(s) with pending operations' after an interrupted update: safely refresh, reconcile state, and clear pending create/delete steps.
Read guide - · 8 min read
Pulumi Error: 'no resource plugin found, run pulumi plugin install'
Fix Pulumi's 'no resource plugin ... found in the workspace or on your $PATH, run pulumi plugin install' error: install the missing provider plugin and align versions so preview and up succeed.
Read guide - · 8 min read
Pulumi Error: 'preview failed' TypeScript Type Error — Compile Fix
Fix Pulumi 'preview failed' caused by a TypeScript type error (TS2xxx) during pulumi preview: bad Input/Output types, tsconfig, and ts-node compilation issues.
Read guide - · 8 min read
Pulumi Error: 'unknown provider type' Provider Plugin Not Installed
Fix Pulumi's 'unknown provider type' / could not load provider error: install the missing resource plugin and align SDK versions so pulumi up can resolve the provider.
Read guide - · 8 min read
Pulumi Error: Resource Provider Version Mismatch Between Installed and Required Plugin
Fix Pulumi's provider version mismatch: reconcile the installed resource plugin version with the version your SDK requires so preview and up stop failing on the wrong provider binary.
Read guide - · 8 min read
Pulumi Error: 'Resource Has a Problem' During Create
Fix Pulumi 'resource ... has a problem' errors during create: read the wrapped provider/cloud API error, handle partial state, and retry a failed create safely.
Read guide - · 8 min read
Pulumi Error: 'resource registration timed out' — RegisterResource Hang Fix
Fix Pulumi 'resource registration ... timed out' / RegisterResource hangs: unawaited promises, blocked provider calls, and stuck apply() callbacks during up.
Read guide - · 8 min read
Pulumi Error: 'the stack's secrets provider does not match' the Configured One
Fix Pulumi's 'secrets provider does not match' error: reconcile Pulumi.<stack>.yaml with the provider recorded in state using pulumi stack change-secrets-provider so secrets decrypt again.
Read guide - · 8 min read
Pulumi Error: 'AccessDenied' on a Self-Managed S3/GCS/Azure Backend
Fix Pulumi self-managed backend 'AccessDenied' / '403' errors reading or writing state in S3, GCS, or Azure Blob: diagnose IAM/bucket policy, credentials, and region mismatches.
Read guide - · 8 min read
Pulumi Error: 'unknown stack' StackReference Output Not Found
Fix Pulumi's StackReference 'unknown stack' / 'could not find stack' error: diagnose wrong org/project/stack names, missing outputs, and backend mismatches across stacks.
Read guide - · 8 min read
Pulumi Error: 'the stack is currently locked' Another Update In Progress
Fix Pulumi's 'the stack is currently locked by another update' error: identify the real running update, or safely run pulumi cancel to clear a stale lock left by a crash.
Read guide - · 8 min read
Pulumi Error: 'error parsing Pulumi.yaml' — Invalid YAML Program Fix
Fix Pulumi YAML 'error parsing Pulumi.yaml' / invalid YAML program: indentation, tabs, bad interpolation syntax, and malformed resources blocks in a YAML program.
Read guide - · 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