{"record":{"id":"cfe920cf596416be","repo":"pulumi/pulumi","slug":"could-not-parameterize-extension-for-resource-v","errorCode":null,"errorMessage":"could not parameterize extension for resource %v: %w","messagePattern":"could not parameterize extension for resource (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/resource/deploy/deployment_executor.go","lineNumber":815,"sourceCode":"\n\t\t\t\tfor _, dep := range allDeps {\n\t\t\t\t\tif excludesActual.Contains(dep.URN) {\n\t\t\t\t\t\texcludesActual.addLiteral(res.URN)\n\n\t\t\t\t\t\tknownToBeExcluded = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif !knownToBeExcluded {\n\t\t\t\t// For each resource we're going to refresh we need to ensure we have a provider for it\n\t\t\t\terr := ex.deployment.EnsureProvider(res.Provider)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"could not load provider for resource %v: %w\", res.URN, err)\n\t\t\t\t}\n\t\t\t\tif err := ex.deployment.ensureProviderExtension(res); err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"could not parameterize extension for resource %v: %w\", res.URN, err)\n\t\t\t\t}\n\n\t\t\t\toldViews := ex.deployment.GetOldViews(res.URN)\n\t\t\t\tstep := NewRefreshStep(ex.deployment, nil, res, oldViews, nil)\n\t\t\t\tsteps = append(steps, step)\n\t\t\t\tresourceToStep[res] = step\n\t\t\t}\n\t\t}\n\t} else {\n\t\ttargetsActual := ex.deployment.opts.Targets\n\n\t\tfor _, res := range prev.Resources {\n\t\t\t// If we're only doing RefreshBeforeUpdate refreshes and the resource isn't\n\t\t\t// marked as such, skip it.\n\t\t\tif refreshBeforeUpdateOnly && !res.RefreshBeforeUpdate {\n\t\t\t\tcontinue\n\t\t\t}\n","sourceCodeStart":797,"sourceCodeEnd":833,"githubUrl":"https://github.com/pulumi/pulumi/blob/793f7b2e160db4321fb7fb6b0607461e01cb251e/pkg/resource/deploy/deployment_executor.go#L797-L833","documentation":"After ensuring the provider plugin is loaded, the engine calls ensureProviderExtension(res) to configure/parameterize any provider extension (e.g. a parameterized/multi-language provider component) for the resource being refreshed. If that parameterization fails, this wrapped error names the resource URN and the underlying cause.","triggerScenarios":"Refreshing (or updating with refresh) a resource whose provider is a parameterized provider (Pulumi Packages / bridged multi-language providers) when the extension cannot be constructed — bad parameter payload in state, missing sub-plugin, or unsupported provider kind.","commonSituations":"State created by a newer Pulumi engine with parameterized providers read by an older CLI; a provider package renamed or replaced between versions; corrupted provider reference in the checkpoint file.","solutions":["Upgrade the Pulumi CLI to the latest version (parameterization support is version-sensitive)","Reinstall/upgrade the specific provider package named in the underlying error","If the state reference is corrupted, restore the stack from `pulumi stack export`/backup or contact support","Reproduce with `--logtostderr -v=9` to capture the inner error from ensureProviderExtension"],"exampleFix":"// before\n$ pulumi refresh\n  error: could not parameterize extension for resource urn:...::tf::bucket: unknown parameterization\n// after\n$ pulumi version  # upgrade CLI\n$ curl -sSL https://get.pulumi.com | sh\n$ pulumi refresh","handlingStrategy":"validation","validationCode":"# check CLI supports parameterized providers before operating on the stack\n[[ $(pulumi version | tr -d v) < 3.80.0 ]] && echo 'upgrade CLI for parameterized providers' && exit 1","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep the Pulumi CLI at or above the version that created the stack state","Avoid swapping a provider package for a differently-parameterized one without an explicit migration","Never manually edit the provider blob in exported stack JSON","Upgrade provider packages in lockstep across environments"],"tags":["refresh","parameterized-provider","engine"],"backgroundTag":"provider-parameterization-failed","analyzedSha":"793f7b2e160db4321fb7fb6b0607461e01cb251e","analyzedAt":"2026-08-31T09:36:43.099Z","schemaVersion":2},"datasetVersion":"2026-08-31T14:17:45.589Z"}