Skip to content
pulumi avatar

Provider Upgrade

Upgrades a Pulumi provider to a newer version, then reconciles the resulting preview diff with the code.

CCM score
76 of 100
skills.sh installs
919
GitHub stars
82
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bumping provider dependencies in package.json, requirements.txt, pyproject.toml, go.mod, or Pulumi.yaml, then previewing the result
  • Includes a diff checkpoint that sorts each non-same resource into code-caused changes or provider-caused changes, with a diagnostic toolbox reference
  • Enforces that new resource blocks adopt existing cloud objects via import rather than creating duplicates, and that delete diffs are not left in place
  • Designed for any Pulumi provider, including aws, azure-native, gcp, kubernetes, cloudflare, and datadog, not only Tier 1 providers

Install

$ npx -y skills add pulumi/agent-skills --skill provider-upgrade -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Upgrading Pulumi Providers

The Principle

A provider upgrade is a translation, not a change request.

The user's infrastructure intent hasn't changed - they still want the same bucket, the same function, the same cluster. What changed is how the provider's API expresses that intent. Your job is to translate their existing code into the new API so that Pulumi sees no difference between what the code says and what already exists.

There are four layers to keep in mind:

  1. User intent - what the user wants in the cloud (unchanged during an upgrade)
  2. Code - how the program expresses that intent using the provider API (may need updating)
  3. Pulumi state - Pulumi's stored representation of what exists (may need reconciliation)
  4. Real cloud - the actual infrastructure (should not change during an upgrade)

During an upgrade, layers 2 and 3 may need to change so that they continue to correctly represent the unchanged layers 1 and 4.

Details

Repository
github.com/pulumi/agent-skills
Category
DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the provider-upgrade skill do?

It upgrades any Pulumi provider to a newer version and reconciles the resulting diff, treating the upgrade as a translation so the preview shows no unintended changes. It also helps fix resources that broke after an upgrade, such as unexpected replacements, creates, or deletes.

Which providers does provider-upgrade work with?

It applies to all Pulumi providers, including aws, azure-native, gcp, kubernetes, aws-native, cloudflare and datadog, not just Tier 1 providers. It covers bumping the provider SDK in package.json, requirements.txt, pyproject.toml, go.mod or Pulumi.yaml.

How do I install the provider-upgrade skill?

Run npx -y skills add pulumi/agent-skills --skill provider-upgrade -y in your project. After that, the agent can walk you through bumping a provider and checking the post-upgrade preview.

Where does provider-upgrade fit among DevOps & Cloud skills?

It sits in the DevOps & Cloud category alongside the azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage skills. Unlike those, it focuses on keeping Pulumi state and code in sync during provider version changes.

When should I not use provider-upgrade?

Do not use it to query which stacks use which package versions, since the package-usage skill handles cross-stack audits. It is also not meant for general infrastructure tasks.

More from pulumi/agent-skills

All 12

Similar to Provider Upgrade

More DevOps & Cloud