You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it appears that the provider tries to create the member if it doesn't exist yet, then add that member to the team. I do have a situation where I have the need to add the same email to multiple teams.
So I'm not expecting that the behavior of the launchdarkly_team_member resource to change, however I would like to be able to map multiple members with the same email. If there's a workaround to do this now, I'm willing to try it.
Example error:
Error: failed to create team member with email: [email protected]: 400 Bad Request: {"code":"email_already_exists_in_account","message":"Members with the following e-mail addresses already exist in this account: [email protected]","invalid_emails":["[email protected]"]}
│
│ with module.team-b.launchdarkly_team_member.developer[1],
│ on team/team.tf line 10, in resource "launchdarkly_team_member" "developer":
│ 10: resource "launchdarkly_team_member" "developer" {
│
The text was updated successfully, but these errors were encountered:
scuba10steve
changed the title
Manage launchdarkly_team_members where the email exists in more than one launchdarkly_team resource.
Manage launchdarkly_team_member where the email exists in more than one launchdarkly_team resource.
Sep 22, 2023
I think the issue is you have multiple modules that are attempting to create the same team member. Would it be possible to create the team members in a different module and pass the relevant team members into a module that just defines the LaunchDarkly team resource?
Currently, it appears that the provider tries to create the member if it doesn't exist yet, then add that member to the team. I do have a situation where I have the need to add the same email to multiple teams.
example:
This is pulled into a module, and then referenced more than once with the same email. e.g.
So I'm not expecting that the behavior of the
launchdarkly_team_member
resource to change, however I would like to be able to map multiple members with the same email. If there's a workaround to do this now, I'm willing to try it.Example error:
The text was updated successfully, but these errors were encountered: