Add Teams to a Project
Allow to add a team to a project and set roles.
Split the creation of the project and the role assignment.
Based on the API: https://www.mongodb.com/docs/atlas/reference/api/project-add-team/
![](https://secure.gravatar.com/avatar/390c1f699441d7bc3481cde214609092?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Thorben commented
Hi Melissa,
what's needed (and, I think, being asked for in the original request) is a way to non-authoritatively add Teams to a Project.
Right now, the only place you can assign a Team to a Project is in the `project` resource itself. This is a problem in complex Terraform configurations with multiple independent tfstates and, for example, reusable generic IAM modules, as it leaves users with a single place to define both a project and all its properties as well as granting teams access to it.
Something like a `team_project_membership` resource to add a `team` to a `project` and grant it a set of `roles` would solve that.
-
We already have Teams: https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/team and the team is added to the project: https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/project. Are you asking for something different? If not we'll close this as already completed. Thanks!
(Edited by admin) -
François commented
+1 :)