-
Notifications
You must be signed in to change notification settings - Fork 43
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
Unable to get past the errors when using the import resource option #2272
Comments
Paraphrasing the import resource option docs the flow is as follows:
In my attempt to root cause this issue, the problem arises for bridged providers at as a consequence of a few issues:
So when the user does not specify the default value but the provider does, this default value is absent from programInputs, assumedInputs, checkedInputs, and assumedState. At the bottom we get the following diff call:
It's suggesting that the provider is going to change the value of changeReason from unset to the provider-initiated default. This happens also if |
What I find very non-intuitive, besides non-working ignoreChanges, is that if I as a user try to go ahead and edit the source program to match the state provider wants to have by writing out the default value, this still doesn't import:
The technicality here is that changing the program does not fix assumedInputs or assumedState, which still don't have the default value, so no reconciliation is happening. |
Sketching out possible solutions here:
|
Apologies for the assigned/unassigned noise, to revisit in next iteration with the team and figure out a way forward. |
What happened?
Seeing customer reports that for certain bridged providers using the import resource option does not work as expected and the user is unable to get past "inputs to import do not match the existing resource", while the provider author is unable to make a fix to make the problem for user to go away.
In particular:
ignoreChanges
does not helpExample
We do not yet have an example with an actual Pulumi-bridged provider. There is a synthetic example in #2216 that uses Plugin Framework to define a resource with a Default value. Customer is reporting this issue in a private bridged provider we cannot reference here.
Output of
pulumi about
pulumi 3.124.0
bridge 3.88.0
Additional context
There are some related issues.
pulumi/pulumi#3737 would be nice to have so the user at least is presented with more info on which inputs are not matching without having to run with details. It would not fix the issue though.
pulumi/pulumi#16397 suggests a desire to overcome the "inputs to import do not match the existing resource" error - if that had a solution it could be valuable here, if the user could at least workaround the problem by forcing the import to complete.
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: