Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to only upgrade providers without updating state #16103

Open
aucampia opened this issue May 2, 2024 · 3 comments
Open

Make it possible to only upgrade providers without updating state #16103

aucampia opened this issue May 2, 2024 · 3 comments
Labels
area/engine Pulumi engine area/target kind/enhancement Improvements or new features

Comments

@aucampia
Copy link

aucampia commented May 2, 2024

Hello!

  • Vote on this issue by adding a 馃憤 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

We heavily rely on --target/--target-dependents but with Pulumi versions newer than v3.108.1 we are having trouble as it is no longer possible to update a resource if the resource's provider version changed. The error we get when we try to do this is something like:

error: provider urn:pulumi:staging::Kron::pulumi:providers:azure-native::default_2_37_0::667e5587-42b6-46b1-a762-97f7866efe33 for resource urn:pulumi:staging::Kron::pkg:index:AzureComponent$azure-native:authorization:RoleAssignment::herman.schistad@kron.no-READER-subscription has not been registered yet, this is due to a change of providers mixed with --target. Change your program back to the original providers

If it was possible to run an update targetting the current state with new provider versions, then it would make things a bit easier on us.

I think it may be possible to hack something like this together by exporting the state to YAML that looks like YAML input and then changing our runtime to YAML temporarily, but it would be nice to not have to do this.

This is related to:

Affected area/feature

  • pulumi up
@aucampia aucampia added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels May 2, 2024
@justinvp justinvp added area/engine Pulumi engine area/target and removed needs-triage Needs attention from the triage team labels May 6, 2024
@justinvp
Copy link
Member

justinvp commented May 6, 2024

Thanks for opening this request, @aucampia, and sorry for the trouble.

@Frassle, any suggestions on how to work around this in the meantime?

@oliparcol
Copy link

How about switching to a non default provider for the resources so that the version number is no longer included in the provider urn ?

@Frassle
Copy link
Member

Frassle commented May 16, 2024

How about switching to a non default provider for the resources so that the version number is no longer included in the provider urn ?

The ID would still change and cause the same issue afaik.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Pulumi engine area/target kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

4 participants