Unleash / terraform-provider-unleash

Terraform provider for unleash, the Open-source feature management solution
https://www.getunleash.io
Apache License 2.0
6 stars 1 forks source link

Resources for service accounts and service account tokens #125

Open JonasBak opened 4 months ago

JonasBak commented 4 months ago

Describe the feature request

I would like to be able to manage service accounts and tokens with terraform.

Background

We manage a lot of stuff for a lot of teams through terraform, and we would like to automatically set up service accounts for different teams with terraform, and grant them permissions to the appropriate projects.

These would be used in each team's terraform workspaces, so they for example would be able to create client tokens through terraform and automatically inject them into where they are needed. This way we don't need to manually copy-paste tokens around and manually manage them.

I could look into implementing the resources myself, but I couldn't find support for it in the client library.

Solution suggestions

Add unleash_service_account and unleash_service_account_token resources.

gastonfournier commented 4 months ago

I think this is a nice to have feature and because the APIs for users and service accounts are similar, we can re-use some of the code we have for users to implement this feature