terraform-provider-cloudamqp icon indicating copy to clipboard operation
terraform-provider-cloudamqp copied to clipboard

Feature Request: Add resouces for teams and members

Open Skeen opened this issue 3 years ago • 9 comments
trafficstars

Hi,

We would like to manage users and teams using Terraform to automatically assign permissions and accesses to users according to our IAM system.

I imagine a resource alike:

resource "cloudamqp_team" "product_team" {
  name               = "Product Team"
  notification_email = "[email protected]"
  gdpr_email         = "[email protected]"
  enforce_two_factor = true

  # various saml options
}

and:

resource "cloudamqp_team_member" "developer" {
  team  = cloudamqp_team.product_team.id

  email = "[email protected]"
  role  = "member"
  tags  = ["product1"]
}

Skeen avatar Jun 22 '22 11:06 Skeen

Thanks for the issue

Do you want to be able to create teams? Or only edit teams? Do you want to be able to create users? Or only edit users?

various saml options

Which ones? The more specific information on what you need the better.

dentarg avatar Jun 22 '22 12:06 dentarg

@dentarg I do not need the SAML options, so for my sake they can be excluded in the first revision.

Skeen avatar Jun 22 '22 12:06 Skeen

I wanna be able to manage the full lifecycle of teams and users. Create, edit and destroy.

Skeen avatar Jun 22 '22 12:06 Skeen

Okay, got it. The Terraform provider can only do actions that exist in the public API: https://docs.cloudamqp.com/

Right now, there's no API for creating teams, nor creating users (only inviting them to a team).

If there's enough demand, it could be prioritised the build these APIs. Do you want to share your company name so I can log the feedback? If you don't want to share it here you can email support(https://www.cloudamqp.com/support.html) and reference this issue.

dentarg avatar Jun 22 '22 13:06 dentarg

The company is Magenta ApS, even support for inviting and removing team-members would be a big advantage.

Skeen avatar Jun 22 '22 13:06 Skeen