Allow adding a Team to a Project via Terraform
I can create a Project in Terraform, but I cannot add a Team to it afterwards.
I am an Organization Member, so I cannot see Projects that I do not have explicit access to. This means that for any Project I create via Terraform, I need to ask someone with more permissions to add my Team to the Project.
This has been released in version 0.4.0
https://www.terraform.io/docs/providers/mongodbatlas/r/team.html
and
https://www.terraform.io/docs/providers/mongodbatlas/r/project.html
More info on 0.4.0:
https://www.mongodb.com/blog/post/new-major-version-of-terraform-mongodb-atlas-provider
-
Stephen commented
there are really 3 steps for our dev teams to get moving in Atlas:
1. create an org
2. create a project
3. create a cluster
the first one is the only one that still has to be done from a console. if we had a terraform script to create an org in our account, we could trigger creation after approval in ServiceNow -
Hi Kyle,
Thank you for flagging this. I want to clarify that while you do need to be an Org Owner to administer Teams in the Org, including adding users to them, importantly a Project Owner does have permission to add Teams to a Project that they "own" as long as they are in turn a member of the Team they are adding.
So if you are not an Org Owner, you can get yourself added to the Team which in turn would allow you to add that Team to Projects you own. However this requires going to through the UI as Programmatic API Keys are not able to be added as members of a team at this time. We need to consider how best to enable this use case programmatically.
-Andrew