Installation
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install provider-upgrade@skills-hub
Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled).
Plugin provider-upgrade v1.0.0 follows the Agent Plugins spec.
gh skills-hub install provider-upgrade Don't have the extension? Run gh extension install samueltauil/skills-hub first.
Download and extract to your repository:
.github/skills/provider-upgrade/ Extract the ZIP to .github/skills/ in your repo. The folder name must match provider-upgrade for Copilot to auto-discover it.
Skill Files (5)
SKILL.md 15.3 KB
---
name: provider-upgrade
description: >
Upgrade any Pulumi provider to a newer version and reconcile the resulting diff. Use when
users want to upgrade or update a provider (including editing package.json, requirements.txt,
pyproject.toml, go.mod, or Pulumi.yaml to bump a provider SDK), check for breaking changes
before or during an upgrade, fix resources that broke after a provider upgrade, or resolve
unexpected replacements, creates, or deletes in a post-upgrade preview, including
pulumi-gcp v10 errors such as a missing gcp.notebooks or gcp.iap.Brand type or a required
secretDataWoVersion. Applies to all
providers (aws, azure-native, gcp, kubernetes, aws-native, cloudflare, datadog, etc.) — not
just Tier 1. Do NOT use for querying which stacks use what package versions; use skill
`package-usage` for cross-stack audits. Do NOT use for general infrastructure tasks.
---
# 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.
A correct translation produces zero diff. The Pulumi engine doesn't have a concept of
"upgrade" - it just compares goal state (your code) against actual state (the state file)
and reconciles. If the translation is correct, those two states match and nothing happens.
If you see a diff, either your translation is wrong, or something beyond a code change is
needed (import, alias, manual step). In all cases, the diff is a problem to solve, not a
consequence to accept.
## The Core Loop
```mermaid
flowchart TD
A[Bump version] --> B[Run preview with env vars]
B --> C{Clean?}
C -->|Yes| D[Create PR]
C -->|No| E[Diff Checkpoint: categorize every diff]
E --> F{Any Category A?}
F -->|Yes| G[Fix wrong translations]
G --> B
F -->|No| H{Any Category B?}
H -->|Yes| I[Investigate with toolbox]
I --> J[Fix or document]
J --> B
H -->|No| D
```
1. **Bump** the provider dependency
2. **Preview** with required CLI flags
3. **Diff Checkpoint** - categorize every non-`same` resource (see next section)
4. **Fix Category A** - code changes that didn't produce `same`
5. **Investigate Category B** - diffs on resources you didn't change
6. **Repeat** until clean or remaining diffs are fully investigated
7. **Create PR** with upgrade summary
---
## The Diff Checkpoint
This is the most important section. Run this after EVERY preview.
For each non-`same` resource, answer one question:
**"Did any of my code changes affect this resource - directly or indirectly?"**
"Directly" means you edited the resource block itself. "Indirectly" means you changed
something that feeds into this resource - a shared variable, an output from another
resource, a helper function, a default value, or a resource that this one depends on.
If your changes could have altered what Pulumi computes for this resource, it's Category A.
Then follow the category that applies.
### Category A: I changed code for this resource
Your code change was supposed to translate the same intent into the new API. If the
resource shows `same`, your translation is correct. If it shows anything else, your
translation is wrong. Not "the diff is expected because I changed the code" - if the
change were semantically equivalent, there would be no diff.
**I modified an existing resource and it shows `update`:**
Your rename, restructure, or value adjustment changed the meaning, not just the syntax.
The resource would show `same` if the old and new code compiled to the same goal state.
The `update` means they don't.
Ask yourself: *"If this rename were truly equivalent, the resource would show `same`.
It doesn't. What is semantically different between my old code and my new code?"*
Common causes: the new property name maps to a different underlying field; the value
shape changed and your conversion lost or added information; a default value changed
in the new version and you need to explicitly set the old value; additional properties
now appear in the diff because the new provider version tracks fields it didn't before
(these need to be set explicitly to match the current state).
If the update includes properties you didn't change - new fields appearing, type
normalizations (string->number), additional defaults - that's the provider changing what
it tracks. But if the diff is there, `pulumi up` WILL send those values to the cloud API.
Don't assume they're no-ops. Investigate each changed property.
**I added a new resource block and it shows `create`:**
During an upgrade, a new resource block almost always represents infrastructure that
already exists in the cloud. The old provider managed it implicitly (as part of another
resource); the new provider needs an explicit resource. But the cloud object is already
there. Pulumi wants to create NEW infrastructure - that's not what you want.
The fix is `import`, not `create`. Tell Pulumi to adopt the existing cloud resource.
Ask yourself: *"What cloud object does this new resource represent? Does it already
exist? How was it managed before the upgrade?"*
```typescript
// Wrong - creates duplicate infrastructure
const stage = new aws.apigateway.Stage("prodStage", { ... });
// Right - adopts the existing resource
const stage = new aws.apigateway.Stage("prodStage", { ... }, {
import: "<rest-api-id>/prod", // import ID format varies by resource type
});
```
**I removed a resource block and it shows `delete`:**
A `delete` in the preview means `pulumi up` will call the provider's Delete API to
destroy or unconfigure this cloud resource. This is real destruction - not just state
cleanup. The cloud infrastructure still exists and is almost certainly still needed.
This is different from `pulumi state delete`, which removes the resource from Pulumi's
tracking WITHOUT calling the provider's API. When a resource type is removed in a new
provider version, the correct approach is:
1. `pulumi state delete '<urn>'` - manual step, removes from tracking only
2. Add replacement resources (if any) with imports - adopts the cloud state under new types
3. Verify with preview
Do NOT leave a `delete` in the preview and proceed to PR creation. A delete that runs
via `pulumi up` will destroy real infrastructure. If the resource must be removed from
state, document it as a manual step for the user.
Ask yourself: *"What cloud infrastructure does this resource manage? If `pulumi up` runs
this delete, what gets destroyed or unconfigured?"*
### Category B: I didn't change code for this resource
This diff was not caused by your code changes. It comes from the provider version change
itself - a different default, a changed state representation, or a behavioral difference.
Read `references/diagnostic-toolbox.md` and investigate.
These diffs might be:
- **Fixable with code** - set an explicit value for a changed default, add an alias
- **A documented no-op** - the upgrade guide says it resolves on `pulumi up` without
affecting real infrastructure. This classification REQUIRES a citation from the upgrade
guide or provider documentation. Your own judgment that "this looks like a no-op" is
not sufficient - the user is trusting you to distinguish real infrastructure changes
from artifacts, and getting it wrong means unexpected changes to their cloud.
- **Requiring manual steps** - state removal + reimport, documented for the user
- **Unknown** - present what you've found to the user and ask for guidance
### Category C: Provider version bump
An `update` on `pulumi:providers:{name}` showing only a version change is the one
expected diff. Verify no other properties changed on the provider resource.
### After categorizing
**Completeness check:** Every resource in the preview that shows any non-`same` state
must appear in your checkpoint - including resources with `[diff: ...]` annotations,
even if they don't have an explicit create/update/delete marker. If you didn't list it,
your checkpoint is incomplete. Go back and categorize the missing resources.
**Evidence requirement for accepted diffs:** If you want to accept any diff as "OK"
(not fix it), you need evidence - whether it's Category A or Category B. "I believe the
API treats these equivalently" or "this looks like state reconciliation" is not evidence.
Acceptable evidence: the upgrade guide documents it, a GitHub issue confirms it, or the
provider documentation explains the behavior. If you can't find evidence, either fix the
diff or flag it to the user.
**Ordering:** Fix all Category A issues before investigating Category B. Your code
corrections will change the preview output, so investigating Category B diffs first wastes
effort. Fix your own mistakes first, re-preview, then look at what remains.
**No `delete` or `replace` in the final preview.** If a delete or replace remains when
you're ready to create a PR, stop. A delete means `pulumi up` will destroy cloud
infrastructure. A replace means it will destroy and recreate. These are never acceptable
as "remaining diffs" - they must be resolved (via code fix, alias, or documented manual
steps) before proceeding.
---
## Hard Rules
### Required CLI flags
Use these flags when running preview. A preview without them can show false diffs
(phantom tag removals, region additions) that aren't real. Don't interpret a preview
that was run without them.
```shell
pulumi preview --refresh --run-program
```
- `--refresh` refreshes actual cloud state before diffing.
- `--run-program` runs the Pulumi program during refresh.
### Don't chase deprecations
If something is deprecated but still works, leave it alone. Migrating to the replacement
introduces risk for no benefit. A deprecation warning is acceptable - a diff is not.
```typescript
// BAD: migrating deprecated-but-working properties introduces risk
new aws.s3.Bucket('bucket');
new aws.s3.BucketLogging('bucketLogging', {...}); // unnecessary migration
// GOOD: fix only the actual error, leave working code alone
new aws.s3.Bucket('bucket', {
logging: {...}, // "loggings" renamed to "logging" - real breaking change
website: {...}, // deprecated but works - don't touch
});
```
### Be minimally invasive
Every line changed could introduce a regression. Prefer the smallest change that works.
### Do not run pulumi up
Provider upgrades modify source code and need code review before deployment.
PR -> review -> merge -> deploy via CI/CD.
---
## Getting Started
### 1. Get version information
Determine the target version from the user's request, the Pulumi Registry, package
manager metadata, or the repository's existing dependency constraints.
Default to the latest stable version if the user hasn't specified a target version.
If the user asks which stacks or projects are affected, use skill `package-usage` or
the best available package inventory tooling before making changes.
### 1a. Check for a provider-specific reference
Some major versions have breaking changes that destroy live resources if fixed in the wrong
order, which preview alone does not reveal. If `references/` has a file for this provider and
target major (for example `gcp-v10.md` for `pulumi-gcp` to 10.x), read it now and follow its
"Before the bump" section before step 2. For that upgrade it overrides the "Do not research
breaking changes first" rule in step 3.
### 2. Update the dependency
- **TypeScript/JavaScript**: `npm install @pulumi/{provider}@^{version}` or `yarn add @pulumi/{provider}@^{version}`
- **Python**: Update `pyproject.toml` or `requirements.txt` with `pulumi_{provider}>={version}` (underscore, not hyphen), then install
- **Go**: `go get github.com/pulumi/pulumi-{provider}/sdk/v{major}@latest`, update all import paths (e.g., `v6` -> `v7`), run `go mod tidy`
- **.NET**: `dotnet add package Pulumi.{Provider} --version {version}`
- **Java**: Update `pom.xml` or `build.gradle` dependency version
- **YAML**: Update provider version in resource options or provider configuration. See https://www.pulumi.com/docs/iac/languages-sdks/yaml/yaml-language-reference/#providers-and-provider-versions for examples.
After installing, check the actual installed version from the lockfile (package-lock.json,
go.sum, etc.) - use these exact versions for schema-tools comparisons.
### 3. Run preview
Run `pulumi preview --refresh --run-program` immediately after updating the dependency.
Do not research breaking changes first - many upgrades just work, especially minor
versions.
If the preview is clean (only the provider version bump), create a PR.
---
## Preview Progress
Preview can fail on the first error and hide others. Fixing one error often reveals new
errors. This is normal progress, not a sign that fixes are making things worse.
- **New or different errors** -> progress, continue
- **Error set shrank** -> progress, continue
- **Same error persists** -> your fix didn't work, try a different approach
- **No errors but diffs** -> run the diff checkpoint
---
## Upgrade Summary
Once the preview is clean (or as clean as possible), present the summary:
```
## Upgrade Summary: {provider} v{current} -> v{target}
### Code Changes
| File | Change | Why it preserves intent |
|------|--------|------------------------|
| package.json | Version bump | - |
| index.ts:15 | loggings -> logging | Property renamed, same underlying field |
### Preview Result
All resources show `same` except provider version bump.
{Or: N resources show diffs - see below}
### Remaining Diffs (if any)
| Resource | Operation | What happens on `pulumi up` | Risk | Source |
|----------|-----------|---------------------------|------|--------|
| aws:s3:Bucket (myBucket) | update (-tags) | No-op, state reconciles | None | AWS v7 guide section 3.2 |
Every remaining diff MUST cite an authoritative source (upgrade guide, provider docs,
upstream GitHub issue). "I believe this is expected" is not a source.
### Manual Steps Required (if any)
1. `pulumi state delete '<urn>'` - remove old type binding
2. `pulumi import <type> <name> <id>` - adopt under new type
3. `pulumi preview --refresh --run-program` - verify clean
### Deprecation Warnings (no action taken)
- List deprecated-but-working code left intentionally
```
If the preview is clean (or all remaining diffs are documented no-ops with cited sources),
create a pull request. If unresolved diffs remain, present the summary as an exception
report and ask the user how they'd like to proceed before creating a PR.
---
## References
- `references/diagnostic-toolbox.md` - upgrade guides, schema-tools (install, run,
interpret output), stack state inspection, SDK types, GitHub issues. Read when
investigating Category B diffs.
- `references/gcp-v10.md` - every pulumi-gcp v10 breaking change with state scan, grep
patterns, fix order and risk. Read before bumping pulumi-gcp to 10.x (see step 1a).
use_cases.yaml 1.7 KB
# Queries that should activate the provider-upgrade skill
queries:
# Explicit upgrade requests
- "Upgrade the pulumi-aws provider in my project to the latest version"
- "How do I upgrade from pulumi-aws v5 to v6?"
- "Bump the pulumi-azure-native provider to v3 in my TypeScript project"
- "Upgrade pulumi-kubernetes from v3 to v4 across my stacks"
- "Update my GCP provider to the latest version"
- "Upgrade the Pulumi Cloudflare provider in this repo"
- "Help me bump the Datadog provider without changing real infrastructure"
# Breaking changes / migration
- "What are the breaking changes when upgrading pulumi-aws from v5 to v6?"
- "Is there a migration guide for pulumi-azure-native v2 to v3?"
- "The aws provider upgrade broke my S3 bucket resource, how do I fix it?"
- "After upgrading pulumi-aws, my preview shows resource replacements I didn't expect"
- "How do I add an alias for a renamed resource after a provider major version bump?"
- "My provider upgrade preview shows a create for infrastructure that already exists"
- "How do I handle deletes after a Pulumi provider major version upgrade?"
- "Upgrade pulumi-gcp to v10"
- "After upgrading to GCP provider v10, gcp.notebooks.Instance no longer exists. What do I do?"
# Dependency management
- "How do I update @pulumi/aws to a newer version in my npm project?"
- "Update the pulumi_aws dependency in my Python requirements.txt"
- "Run go get to upgrade the Pulumi AWS provider SDK to the latest major version"
# Workflow / process questions
- "Walk me through upgrading the kubernetes provider without breaking my production stack"
- "What's the safe process for upgrading a Pulumi provider in a team environment?"
openai.yaml 0.2 KB
interface:
display_name: "Pulumi Provider Upgrade"
short_description: "Upgrade Pulumi providers across stacks"
default_prompt: "Use $provider-upgrade to upgrade a Pulumi provider to the latest version across affected stacks."
diagnostic-toolbox.md 5.4 KB
# Diagnostic Toolbox
Use these tools to investigate diffs - especially Category B diffs (resources you didn't
change code for). Reach for whichever tool fits the situation.
For major version upgrades, check the upgrade guide early - even alongside the first
preview. Upgrade guides contain sequencing requirements and edge cases that no other
tool can surface.
## Upgrade Guide (Pulumi or Terraform)
The most valuable resource for major version bumps. Contains migration patterns,
sequencing requirements, and documents which diffs are known preview artifacts.
The upgrade guide is the ONLY authoritative source for classifying a diff as a "known
no-op" - a diff that shows in preview but resolves on `pulumi up` without affecting
real infrastructure.
**Pulumi upgrade guide:**
Search for `site:pulumi.com {provider} migration guide v{major}`.
**Terraform upgrade guide** (for Terraform-based providers):
Check `https://registry.terraform.io/providers/{org}/{tf-provider}/latest/docs/guides/version-{major}-upgrade`
or search for `site:registry.terraform.io {tf-provider} version {major} upgrade`.
**When to use:** For any major version upgrade. Check it early.
## schema-tools - structured diff between versions
A structured diff of every schema change between provider versions. For large providers,
the diff can contain thousands of changes - always cross-reference with the resource
types actually present in the stack.
**Install** (if not available):
This example is intentionally lightweight and may drift over time. If the pinned version
below is stale, use the latest available `schema-tools` release instead of treating the
example version as authoritative.
```shell
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
case "$ARCH" in x86_64) ARCH="amd64" ;; aarch64|arm64) ARCH="arm64" ;; esac
VERSION="v0.7.0"
curl -fsSL "https://github.com/pulumi/schema-tools/releases/download/${VERSION}/schema-tools-${VERSION}-${OS}-${ARCH}.tar.gz" \
-o /tmp/schema-tools.tar.gz
tar -xzf /tmp/schema-tools.tar.gz -C /tmp/
chmod +x /tmp/schema-tools
```
**Run and save to a file:**
```shell
/tmp/schema-tools compare -p {provider} -o v{current_version} -n v{target_version} --json > /tmp/{provider}-schema-diff.json
```
The `-o` and `-n` flags must be full version tags (e.g., `v6.0.0`, `v7.0.0`), not just
major numbers. Use the exact versions from the lockfile.
**Useful queries:**
```shell
# Summary of all breaking change categories
jq '.summary' /tmp/{provider}-schema-diff.json
# Changes for a specific resource
jq '.grouped.resources["aws:s3/bucket:Bucket"]' /tmp/{provider}-schema-diff.json
# All changes of a specific type
jq '[.changes[] | select(.kind == "missing-input")]' /tmp/{provider}-schema-diff.json
# All breaking changes matching a pattern
jq '[.changes[] | select(.token | test("apigateway"))]' /tmp/{provider}-schema-diff.json
# List all affected resource tokens
jq '[.changes[] | .token] | unique' /tmp/{provider}-schema-diff.json
```
Each change entry has `kind`, `token`, `severity`, and `message` fields. The change
kinds you'll encounter most often during upgrades:
- **missing-input** - a property was removed from inputs. Usually renamed or replaced by
a different property with a different shape. The schema diff says it's gone but doesn't
say what replaced it - check the upgrade guide or new schema for the replacement.
- **type-changed** - a property's type changed. The most common pattern is a MaxItemsOne
flip: a property is renamed AND changes between single object and array (or vice versa).
Example: `certificateAuthorities` (array) -> `certificateAuthority` (single object).
- **token-remapped** - a resource or function was renamed. If "deprecated," the old name
still works (don't chase it). If "remapped," the old name is gone - rename in code and
add an alias to preserve state: `aliases: [{ type: "old:token:Name" }]`.
**When to use:** When preview errors mention unknown properties, missing fields, type
mismatches, or unrecognized resource types. The schema diff tells you exactly what was
renamed, removed, or reshaped.
## Stack state inspection - scope changes to this stack
Inspect the stack's deployed resource types. Essential for large providers - filter the
schema diff to only resources that matter. Use whatever state inspection tooling is
available in the environment, such as `pulumi stack --show-urns`, `pulumi stack export`,
state files, or backend resource inventory APIs.
```shell
# Example: list resource types from a stack export
pulumi stack export > /tmp/stack.json
jq -r '.deployment.resources[].type' /tmp/stack.json | sort -u
# Then filter schema diff to only resource types in the stack
jq '[.changes[] | select(.token | test("ZoneSettingsOverride|PageRule|Record|Zone"))]' \
/tmp/{provider}-schema-diff.json
```
**When to use:** Always use alongside schema-tools.
## SDK type definitions - inspect the new API shape
For TypeScript and Python projects, the installed package's type definitions show the
exact new API - property names, types, required vs. optional.
**TypeScript:** read `node_modules/@pulumi/{provider}/*.d.ts` for the resource type
**Python:** read the installed package source
Faster than schema-tools for answering "what does this resource look like now?"
## GitHub issues
Search `pulumi/pulumi-{provider}` and `hashicorp/terraform-provider-{tf-name}` for
specific error messages or resource names.
**When to use:** When upgrade guides don't cover an edge case, or when you're seeing
unexpected behavior that might be a known bug.
gcp-v10.md 16.4 KB
# pulumi-gcp v9 to v10
Every breaking change in pulumi-gcp v10.0.0, derived from the v10 migration guide
(https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/). The guide is the
source of truth: each detailed row links its section, which has a read-only detection command
(a `pulumi stack export | jq` query, or `pulumi preview --json` for `loadBalancingScheme`) and
before/after code in every language. Read that section before fixing a `REPLACE` or `DELETE`
row, and cite it when you accept a diff.
## Before the bump
Some v10 changes destroy live resources if the fix is made in the wrong order, so do these
steps before step 2 of the skill:
1. **Version gate.** The deployed major must be 9 (check `pulumi:providers:gcp` in
`pulumi stack export`). On 8.x or older, stop: the user completes the v9 migration first
(https://www.pulumi.com/registry/packages/gcp/how-to-guides/9-0-migration/). Do not jump
two majors in one step. Already on 10.x: skip to the tables below and work from the preview.
2. **Clean v9 baseline.** Still on v9, run `pulumi preview --refresh --run-program` per stack.
If it is not clean, stop and ask the user to settle it; diffs that exist before the bump
will be blamed on v10.
3. **Find affected resources.** Run the state scan and the code pass below.
4. **Gate on risk.** Present the affected rows to the user grouped by risk (`REPLACE`,
`DELETE`, `UPDATE`, `BUILD`, `VALUE`, `NONE`) before editing anything. For each `REPLACE`
or `DELETE` row, state what is destroyed and get the user's choice.
5. **Order removed types state first.** For `gcp.notebooks.*`, `gcp.iap.Brand`/`Client`,
`gcp.beyondcorp.App*`, `gcp.ml.EngineModel` and `gcp.vertex.AiSchedule`, write out
`pulumi state delete` commands for the user, dependents first, and only then remove the
code. Removing code first makes `pulumi up` send the delete to the v9 provider in state,
which destroys the live resource. Adopt a successor with `pulumi import`, never a create.
Fixes that most often go wrong:
- `gcp.compute.Instance` with a `guestAccelerators` entry of `count: 0`: omit the list
instead. A replace loses the boot disk and local SSD data.
- `gcp.secretmanager.SecretVersion` without `secretDataWoVersion`: set it to `""`. Any other
value, including `"0"`, replaces the secret version.
- `gcp.bigquery.Dataset.defaultCollation`: pin the value the live resource has today, read
from state.
- `loadBalancingScheme` unset on a classic `gcp.compute.BackendService` or
`GlobalForwardingRule`: set `"EXTERNAL"` explicitly before the bump, as upstream advises.
Never run `pulumi up`, `pulumi refresh`, `pulumi destroy`, `pulumi state delete` or
`pulumi import` yourself; write them out for the user. `pulumi preview` and
`pulumi stack export` are read-only. Then return to step 2 of the skill and continue the core
loop.
## Risk levels
| Risk | Meaning |
|---|---|
| `REPLACE` | Left unfixed, `pulumi up` destroys and recreates the live resource. |
| `DELETE` | The wrong fix order makes `pulumi up` delete the live resource. |
| `UPDATE` | Left unfixed, `pulumi up` changes a live setting in place. |
| `BUILD` | Program fails to compile or `pulumi preview` fails; nothing deploys until fixed. |
| `VALUE` | A value the program reads back changes or disappears; the resource itself is unchanged. |
| `NONE` | No action needed on migration. |
## State scan
Run against each stack while still on v9. It lists every resource type in state that has a
row below, with a count. No output means no row applies through state; still run the code pass
for functions (data sources are never in state) and for code that reads values back.
```bash
pulumi stack export \
| jq -r '.deployment.resources[].type' \
| sort | uniq -c \
| grep -E \
-e 'gcp:(notebooks|ml)/' \
-e 'gcp:iap/(brand|client):' \
-e 'gcp:beyondcorp/app(Connection|Connector|Gateway):' \
-e 'gcp:vertex/aiSchedule:' \
-e 'gcp:compute/(instance|serviceAttachment|reservation|backendService|globalForwardingRule|interconnectAttachmentGroup):' \
-e 'gcp:bigquery/(dataset|dataTransferConfig):' \
-e 'gcp:secretmanager/secretVersion:' \
-e 'gcp:monitoring/uptimeCheckConfig:' \
-e 'gcp:container/(cluster|nodePool):' \
-e 'gcp:workflows/workflow:' \
-e 'gcp:cloudrunv2/workerPool:' \
-e 'gcp:applicationintegration/client:' \
-e 'gcp:cloudsecuritycompliance/framework:' \
-e 'gcp:dataloss/preventionJobTrigger:' \
-e 'gcp:iam/workforcePoolProviderScimTenant:' \
-e 'gcp:netapp/storagePool:'
```
## Code pass
Patterns are extended regexes for `grep -rniE` or `rg -i` over the program source. They match
TypeScript/Java camelCase, Python snake_case, Go/.NET PascalCase and YAML tokens
(`gcp:notebooks:Instance`). Python `from pulumi_gcp import notebooks` and Go import aliases can
hide the module prefix: if a file imports the module, also grep for the bare resource name.
## Detailed changes
Each row links its guide section.
| Resource (state type) | What changed | Grep | Action | Risk |
|---|---|---|---|---|
| `gcp.compute.Instance` (`gcp:compute/instance:Instance`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcomputeinstance-a-guestaccelerator-count-of-0-now-replaces-the-instance) | A `guestAccelerators` entry with `count: 0` is now acted on. Replaces the instance if an accelerator is attached or more than one block is declared. | `guest_?accelerators?` | Omit the list (undefined/None/nil) when no accelerator is wanted instead of passing `count: 0`. Replacement loses the boot disk and local SSD data and changes IPs; take a snapshot if the user chooses it. | `REPLACE` |
| `gcp.iap.Brand`, `gcp.iap.Client` (`gcp:iap/brand:Brand`, `gcp:iap/client:Client`), function `gcp.iap.getClient` [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpiapbrand-and-gcpiapclient-removed) | Removed; Google shut down the IAP OAuth Admin API. No replacement type. | `iap\w*[.:/]\w*(brand\|client)` | User runs `pulumi state delete` on the Client, then the Brand, then you remove the code. Replace `getClient` reads with stack config (`requireSecret` for the secret). Removing code first deletes the live OAuth client, which cannot be recreated with the same ID. | `DELETE` |
| `gcp.notebooks.*` (`gcp:notebooks/...`: Instance, Runtime, Environment and their IAM Policy/Binding/Member, `getInstanceIamPolicy`, `getRuntimeIamPolicy`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpnotebooks-the-module-has-been-removed) | Whole module removed; the product is end of life. Successor is `gcp.workbench.Instance` and `gcp.workbench.InstanceIamMember`. | `gcp\w*[.:/]notebooks` | Keep the machine: user migrates it at GCP level (`POST https://notebooks.googleapis.com/v1/projects/PROJECT/locations/ZONE/instances/NAME:migrate`), runs `pulumi state delete` (IAM first, then instance), then `pulumi import gcp:workbench/instance:Instance`. Settings move under `gceSetup`, disk sizes become strings, IAM `instanceName` becomes `name`. Take the full field mapping from the guide section, do not guess it. Removing code first deletes the VM and, unless `noRemoveDataDisk`, its data disk. | `DELETE` |
| `gcp.bigquery.Dataset` (`gcp:bigquery/dataset:Dataset`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpbigquerydataset-an-undeclared-defaultcollation-is-now-cleared) | `defaultCollation` no longer computed; unset or `""` clears a live collation. Output is now optional. | `default_?collation` | Set `defaultCollation` to the live value from state (`outputs.defaultCollation`) where the program leaves it unset or `""`. A dataset not yet in state has nothing to preserve. Give reads of the output a fallback. | `UPDATE`, `BUILD` |
| `gcp.secretmanager.SecretVersion` (`gcp:secretmanager/secretVersion:SecretVersion`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpsecretmanagersecretversion-secretdatawoversion-is-required-alongside-secretdatawo-and-is-a-string) | `secretDataWoVersion` now required with `secretDataWo`, and is a string, not an integer. | `secret_?data_?wo` | Number: quote it (`1` becomes `"1"`). Omitted: set `""`. Any other value, including `"0"`, replaces the secret version. | `BUILD`, `REPLACE` if set wrong |
| `gcp.monitoring.UptimeCheckConfig` (`gcp:monitoring/uptimeCheckConfig:UptimeCheckConfig`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpmonitoringuptimecheckconfig-the-two-password-fields-are-now-mutually-exclusive) | `httpCheck.authInfo` must set exactly one of `password` and `passwordWo`. | `auth_?info\|password_?wo` | Both set: remove `passwordWo` and `passwordWoVersion` (keeps the credential v9 actually sent). Neither set: add `password: ""`, which is never sent to the API. | `BUILD` |
| `gcp.container.Cluster` `nodePools[]`, `gcp.container.NodePool` (`gcp:container/nodePool:NodePool`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcontainercluster-and-gcpcontainernodepool-nameprefix-may-now-be-up-to-31-characters) | `namePrefix` may be up to 31 characters. Existing names are not regenerated. | `name_?prefix` | None. Do not change `namePrefix` on a live pool: that replaces the pool and its nodes. | `NONE` |
| `gcp.workflows.Workflow` (`gcp:workflows/workflow:Workflow`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpworkflowsworkflow-sourcecontents-is-now-required) | `sourceContents` is now required (GCP always rejected a workflow without it). | `workflows\w*[.:/]\w*Workflow\b` | Any deployed workflow already has it; only a program that never deployed is affected. | `BUILD` |
| `gcp.cloudrunv2.WorkerPool` (`gcp:cloudrunv2/workerPool:WorkerPool`), function `getWorkerPool` [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcloudrunv2workerpool-probe-header-fields-changed) | Probe `httpGet.httpHeaders` is now a list; `httpHeaders.name` required; `httpHeaders.port` removed; top-level `customAudiences` removed. | `http_?headers\|custom_?audiences` (only in WorkerPool code; `cloudrunv2.Service` is unchanged) | Wrap the header in a list. Delete `customAudiences` lines and reads (the API never accepted it). No replace, no update. | `BUILD` |
| `gcp.compute.ServiceAttachment` (`gcp:compute/serviceAttachment:ServiceAttachment`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcomputeserviceattachment-natsubnets-and-consumerrejectlists-are-now-sets) | `natSubnets` and `consumerRejectLists` are sets. Order in state changes on the first refresh; a recurring v9 diff goes away. | `nat_?subnets\|consumer_?reject_?lists` | Only if code reads an element by index: read from the value the program supplied instead. Make the edit before the first refresh. | `VALUE` |
| `gcp.container.Cluster` (`gcp:container/cluster:Cluster`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcontainercluster-the-enablecomponents-fields-are-now-sets) | `loggingConfig.enableComponents` and `monitoringConfig.enableComponents` are sets; read back sorted. | `enable_?components` | Only if code reads by index: switch to a membership test or sort explicitly. | `VALUE` |
| `gcp.compute.Reservation` (`gcp:compute/reservation:Reservation`), function `getReservation` [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcomputereservation-top-level-reservationblockcount-removed) | Top-level `reservationBlockCount` removed (never settable). | `reservation_?block_?count` | Read `resourceStatuses[0].reservationBlockCount` with a `0` fallback (the list is empty for a reservation with no blocks). In interpreted languages an unfixed read silently drops stack outputs. | `BUILD`, `VALUE` |
| `gcp.compute.BackendService`, `gcp.compute.GlobalForwardingRule` (`gcp:compute/backendService:BackendService`, `gcp:compute/globalForwardingRule:GlobalForwardingRule`) [guide](https://www.pulumi.com/registry/packages/gcp/how-to-guides/10-0-migration/#gcpcomputebackendservice-and-gcpcomputeglobalforwardingrule-loadbalancingscheme-now-defaults-to-external_managed) | `loadBalancingScheme` default changed from `EXTERNAL` (classic) to `EXTERNAL_MANAGED`. Tested: a load balancer whose halves end up on different schemes fails partway through `pulumi up` with `Error 400`. This includes a new Standard-tier load balancer left unset, because its regional `ForwardingRule` still defaults to `EXTERNAL`. An existing classic load balancer can silently end up mixed. Pinning `EXTERNAL` on a resource created as `EXTERNAL_MANAGED` is rejected and needs `--replace`. | `\bBackendService\b\|NewBackendService\b\|global_?forwarding_?rule` then check for `load_?balancing_?scheme` | Before upgrading, set `loadBalancingScheme: "EXTERNAL"` explicitly on every classic load balancer's backend services and global forwarding rules where it is unset (confirm the live value in state, `outputs.loadBalancingScheme`). Set it consistently on both halves of each load balancer. Only move to `EXTERNAL_MANAGED` as a deliberate, separate change. | `UPDATE` |
## Other changes (guide lists them only)
The guide has no detection command or code for these. Derive the fix from the row and confirm
with `pulumi preview --refresh --run-program`.
| Resource or function (state type) | What changed | Grep | Action | Risk |
|---|---|---|---|---|
| `gcp.beyondcorp.AppConnection`, `AppConnector`, `AppGateway` (`gcp:beyondcorp/app...`), functions `getAppConnection`, `getAppConnector`, `getAppGateway` | Removed. Successors: `gcp.beyondcorp.SecurityGateway`, `SecurityGatewayApplication`. | `beyondcorp\w*[.:/]\w*App(Connection\|Connector\|Gateway)\|app_(connection\|connector\|gateway)` | Same order as the IAP and notebooks rows: user runs `pulumi state delete` before code is removed; adopt any successor with `pulumi import`. | `DELETE` |
| `gcp.ml.EngineModel` (`gcp:ml/engineModel:EngineModel`) | Removed; `gcp.ml` module gone. Successor: Vertex AI resources such as `gcp.vertex.AiEndpoint`. | `gcp\w*[.:/]ml[.:/]\|engine_?model` | As above: `pulumi state delete` first, then remove code. | `DELETE` |
| `gcp.vertex.AiSchedule` (`gcp:vertex/aiSchedule:AiSchedule`) | Removed. Successor: `gcp.colab.Schedule`. | `ai_?schedule` | As above. | `DELETE` |
| `gcp.bigquery.DataTransferConfig` (`gcp:bigquery/dataTransferConfig:DataTransferConfig`) | Exactly one of `sensitiveParams.secretAccessKey` and `secretAccessKeyWo` must be set; `secretAccessKeyWoVersion` is now a string. | `secret_?access_?key` | Keep exactly one of the two; quote a numeric `secretAccessKeyWoVersion`. | `BUILD` |
| `gcp.compute.ServiceAttachment` | `consumerAcceptLists[].projectIdOrNum`, `networkUrl`, `endpointUrl` default to `""` instead of null. | `consumer_?accept_?lists` | Only if code reads those back: treat `""` as absent. | `VALUE` |
| `gcp.applicationintegration.Client` (`gcp:applicationintegration/client:Client`) | `runAsServiceAccount` removed. | `run_?as_?service_?account` | Remove the argument; check preview for a diff. | `BUILD` |
| `gcp.cloudsecuritycompliance.Framework` (`gcp:cloudsecuritycompliance/framework:Framework`) | `cloudControlDetails` is a set; order ignored, duplicates rejected. | `cloud_?control_?details` | Remove duplicate entries; stop reading by index. | `BUILD`, `VALUE` |
| `gcp.compute.InterconnectAttachmentGroup` (`gcp:compute/interconnectAttachmentGroup:InterconnectAttachmentGroup`) | `logicalStructures[].regions[].metros[].facilities[].zones[].attachment` removed. | `logical_?structures` | Read `attachments` instead. | `BUILD` |
| `gcp.dataloss.PreventionJobTrigger` (`gcp:dataloss/preventionJobTrigger:PreventionJobTrigger`) | `actions.publishFindingsToCloudDataCatalog` removed. | `publish_?findings_?to_?cloud_?data_?catalog` | Remove the action; check preview for a diff. | `BUILD` |
| `gcp.iam.WorkforcePoolProviderScimTenant` (`gcp:iam/workforcePoolProviderScimTenant:WorkforcePoolProviderScimTenant`) | `claimMapping` required on create. | `scim_?tenant` | Existing tenants: none. New ones: set `claimMapping`. | `BUILD` |
| `gcp.netapp.StoragePool` (`gcp:netapp/storagePool:StoragePool`) | `scaleTier` removed. | `scale_?tier` | Remove the argument; check preview for a diff. | `BUILD` |
| Functions `gcp.backupdisasterrecovery.getBackupPlanAssociations`, `getDataSourceReferences` | `resourceType` removed. | `get_?(backup_?plan_?associations\|data_?source_?references)` | Remove the argument. | `BUILD` |
In the Grep column, `\|` is a literal `|` escaped for the table; type `|` when running the
pattern.
License (Apache-2.0)
View full license text
Licensed under the Apache License, Version 2.0. See https://github.com/pulumi/agent-skills/blob/main/LICENSE