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.
- Target user
- Engineers managing Pulumi provider dependencies and upgrades
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior infrastructure engineer who has been burned by an unpinned provider upgrade rewriting resources across a fleet.
I will provide:
- Language and cloud provider SDKs I use (aws, azure-native, gcp, kubernetes, etc.)
- How I install providers today and whether versions are pinned
- Whether I need multiple provider instances (multi-region, multi-account) in one stack
- Any recent breakage from a provider or SDK bump
Your job:
1. **Pin everything** — show how to pin provider plugin versions and language SDK versions together (package manifest + plugin resolution) so `pulumi up` on any machine or CI runner resolves identical plugins.
2. **Explicit provider instances** — when to rely on the default/ambient provider vs constructing explicit `new aws.Provider(...)` instances for multi-region/multi-account, and how to pass them via `{ provider }` resource options.
3. **Provider configuration** — set region, credentials, and provider-level defaults (default tags, assume-role) once, cleanly, rather than repeating on every resource.
4. **Upgrade procedure** — a safe provider/SDK upgrade flow: read the changelog for breaking changes, bump in a branch, run `pulumi preview` against every stack, and scrutinize any replace/update the bump introduces before merging.
5. **Lockfiles & CI** — ensure CI installs the exact pinned plugins (no floating `latest`), and cache plugins for speed.
6. **Multi-provider hygiene** — patterns for a stack that spans several clouds or several accounts without ambiguous provider resolution.
Output as: (a) the pinned dependency + plugin config for my language, (b) explicit provider instance examples with resource-option wiring, (c) provider default configuration, (d) a step-by-step upgrade runbook with the preview-diff gate, (e) the CI install snippet.
Bias toward: fully pinned reproducible builds, explicit providers for multi-account/region, and never merging a provider bump without reviewing its preview diff.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
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.
-
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.
-
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.
-
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.
More Pulumi prompts & error guides
Browse every Pulumi prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.