Manages individual team member configurations in LiteLLM. This resource allows you to add, update, and remove team members with specific permissions and budget limits.
resource "litellm_team_member" "engineer" {
team_id = litellm_team.engineering.id
user_id = "user_3"
user_email = "[email protected]"
role = "user"
max_budget_in_team = 200.0
}
The following arguments are supported:
-
team_id
- (Required) The ID of the team this member belongs to. -
user_id
- (Required) Unique identifier for the user. -
user_email
- (Required) Email address of the user. -
role
- (Required) The role of the team member. Valid values are:org_admin
internal_user
internal_user_viewer
admin
user
-
max_budget_in_team
- (Optional) Maximum budget allocated to this team member within the team's budget.
In addition to the arguments above, the following attributes are exported:
id
- The unique identifier for the team member configuration. This is typically a composite of the team_id and user_id.
Team members can be imported using the format team_id:user_id
:
terraform import litellm_team_member.engineer <team_id>:<user_id>
Note: The team_id and user_id should match the values used in the resource configuration.
Ensure that sensitive information such as user emails and IDs are handled securely. It's recommended to use variables or a secure secret management solution rather than hardcoding these values in your Terraform configuration files.