-
Notifications
You must be signed in to change notification settings - Fork 18
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New provider causes updates to fail #983
Comments
Hi @solomonshorser. Unfortunately, we've de-prioritized investment in this provider, so we may not be able to look into this right away. Since the error is pretty explicit about the failure talking to the API, you might debug by examining what API calls the cli tool would make for the same request. (or what the older version of the provider would do if you triggered this replace.) My assumption is that the discovery docs we're using to generate these calls are just wrong about the API we need to use here. |
@mjeffryes I think the prior version of the provider used for these resources would have been 0.26.1. I was able to work around this problem by forcing pulumi to destroy the ServiceAccountIamPolicy resource (and dependents), removing the related GCP ServiceAccount from the stack, and then tweaking the code so that it would do a lookup to retrieve the service account rather trying to than manage the ServiceAccount it as its own resource. If this provider has been deprioritized, I guess I should focus my future development to use the "classic" GCP provider, right? |
Thanks for sharing your workaround; I'm sorry you had to resort to unmanaging the SA to work around this. And yes, we would recommend using pulumi-gcp for any new resources and slowly migrating off of this provider as you are able. |
What happened?
We had to change the google-native provider from 0.26.1 to 0.32 recently for some newer features in the newer version.
When updating the stack, pulumi attempted to update a ServiceAccountPolicy, which failed with this error:
The preview that pulumi shows looks like this:
The only real difference is the provider.
The weird thing is that in summary mode, preview shows this:
Where the diff is the serviceAccountId.
Example
The code that creates the ServiceAccountPolicy looks like this:
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: