-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return user's groups as a Terraform data source for templates #8560
Comments
From #7191
|
I can take a look at this if that's cool, it's unfamiliar territory but I'd like to learn more in this area. |
Who ever is going to take this. We should probably do coder/terraform-provider-coder#180 first before adding any major features to the provider. This will save us from any accumulated tech debt and probably will allow a more streamline process to add new features to the provider. |
@matifali My change was just a few lines of code, so I wouldn't want that refactor to block this. |
There may be cases where a template wants to be aware of the user's groups for infrastructure to provision/tags to add, etc.
The easiest way to do it seems like sending them as an array of strings in https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace
Use cases
User must be in
devops
group for this to be provisioned as a part of their workspace:Add groups as a tag to an resource:
Look up IAM policy based on groups:
The text was updated successfully, but these errors were encountered: