-
Notifications
You must be signed in to change notification settings - Fork 13
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
Importing users documentation vs actual behaviour #224
Comments
I have noticed this as well. Importing using an id will force a replacement because the email attribute will change. Using the import command but specifying the email instead of the user id works as expected. I was going to make a PR to update the docs to state using email instead of id when importing, wondering what others think. Looking at the importer code the methods and variables imply that email should be used instead of id. |
Seeing the same behaviour - the documentation is very much wrong. This is also the fix for #235. |
This also doesn't work - basically It seems this can work with resource "rollbar_user" "joeblogs" {
email = "[email protected]"
team_ids = [] # have to give some form of team list
}
resource "rollbar_team_user" "joeblogs" {
team_id = data.rollbar_team.owners.id
email = "[email protected]"
} |
Terraform version
Terraform v0.14.5
Affected resource(s)
Terraform configuration files
Steps to reproduce
terraform import rollbar_user.luis 238583
Expected outcome
User imported without diffs
Actual output
More context
Looking at the source code I see that it's also possible to import the user via email.
Doing so still produces a diff trying to add the user to the
everyone
team (id=199890)Having looked at this, I wonder if the documentation should also state that a user can be imported via email.
Or, should the plugin just allow to import registered users, therefore importing using ID only ?
Also team
rollbar_team.myteam.id
is correctly imported but teameveryone
withid=199890
is not.The text was updated successfully, but these errors were encountered: