-
Notifications
You must be signed in to change notification settings - Fork 7
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 import existing User resource #237
Comments
Thank you for reporting this issue with a great repro @asvinours ! My team will be having a look. |
@t0yv0 any news for this issue? Being able to import an existing user would be an amazing feature for us but this bug prevents us from moving forward |
@t0yv0 Looks like this issue is still present in the latest version of the provider, any update on a fix? |
…mport (#456) Fixes #237 I'm unsure why the path commits were modified to `0000000000000000000000000000000000000000`, I guess I must have made a mistake somewhere. here are the steps I followed: ``` - make upstream - make upstream.rebase - I made the changes to upstream/internal/auth0/user/flatten.go and upstream/internal/auth0/user/resource.go then created a new git commit - make upstream.finalize ``` I generated a build of the plugin and the python SDK and tested this change locally and I can confirm that the connectionName is properly imported and does not generate a change anymore before the patch: ```text warning: inputs to import do not match the existing resource; importing this resource will fail = auth0:index/user:User: (import) [id=auth0|65b3cf64d3feda60bbc6bd01] [urn=urn:pulumi:dev::test-pulumi-auth0::auth0:index/user:User::this] [provider=urn:pulumi:dev::test-pulumi-auth0::pulumi:providers:auth0::this::04da6b54-80e4-46f7-96ec-b56ff0331ba9] + connectionName: "c63b249c-47ce-4c26-a2c6-20dd9101af86-LocalUserDatabase" ``` with the patch ```text = auth0:index/user:User: (import) [id=auth0|65b3cf64d3feda60bbc6bd01] [urn=urn:pulumi:dev::test-pulumi-auth0::auth0:index/user:User::this] [provider=urn:pulumi:dev::test-pulumi-auth0::pulumi:providers:auth0::this::04da6b54-80e4-46f7-96ec-b56ff0331ba9] connectionName: "c63b249c-47ce-4c26-a2c6-20dd9101af86-LocalUserDatabase" email : "me@example.com" name : "Administrator" nickname : "administrator" picture : "https://s.gravatar.com/avatar/b3a263843d9b28612b381b3a01e4543c?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fla.png" userId : "auth0|65b3cf64d3feda60bbc6bd01" ```
Your patch was released as part of v3.3.1. |
thank you very much @iwahbe This is going to unblock a few projects for us |
What happened?
When trying to import an existing auth0 user into a pulumi stack, the connection name attribute is causing a resource diff which makes the import process fail.
If the
connection_name
attribute is added to the list ofignore_changes
, then pulumi fails to run:Expected Behavior
The import step should succeed and the user resource should be imported into the pulumi stack
Steps to reproduce
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: