mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
* feat(terraform): close key/team schema gaps, fix team read envelope, add import support * feat(terraform): add fallback resource/data source and key/team block resources * feat(terraform): add access group and unified access group resources and data sources * feat(terraform): add guardrail and prompt resources and data sources * feat(terraform): add agent and search tool resources and data sources * feat(terraform): add user and budget resources and data sources * feat(terraform): add tag and project resources and data sources * docs(terraform): changelog and readme for parity additions * feat(terraform): add data sources for keys, teams, models, organizations, and mcp servers * fix(terraform): key update 400 on empty budget_duration, key info envelope, config-supplied key * fix(terraform): hash raw keys to SHA-256 tokens in key lookup URLs and block resource IDs
2.4 KiB
2.4 KiB
litellm_project Resource
Manages a project in LiteLLM. Projects sit between teams and keys in the hierarchy, allowing fine-grained budget and model access control within a team
Example Usage
resource "litellm_team" "research" {
team_alias = "research-team"
}
resource "litellm_project" "ml_experiments" {
team_id = litellm_team.research.id
project_alias = "ml-experiments"
description = "ML experimentation project"
models = ["gpt-5.6", "claude-opus-5"]
max_budget = 1000.0
soft_budget = 800.0
budget_duration = "30d"
tpm_limit = 500000
rpm_limit = 5000
tags = ["research", "gpu"]
metadata = {
cost_center = "R&D-001"
}
}
Argument Reference
The following arguments are supported:
team_id- (Required, Forces new resource) The team ID this project belongs toproject_alias- (Optional) Human-friendly name for the projectdescription- (Optional) Description of the project's purpose and use casemodels- (Optional) List of models the project can accessmetadata- (Optional) Map of metadata for the projecttags- (Optional) Tags associated with the projectmax_budget- (Optional) Maximum budget for this projectsoft_budget- (Optional) Soft budget limit for warningsbudget_duration- (Optional) Budget reset duration, for example1h,30dbudget_id- (Optional) Budget ID to associate with this projecttpm_limit- (Optional) Tokens per minute limitrpm_limit- (Optional) Requests per minute limitmax_parallel_requests- (Optional) Maximum parallel requests allowedmodel_max_budget- (Optional) Map of per-model budget limitsmodel_rpm_limit- (Optional) Map of per-model RPM limitsmodel_tpm_limit- (Optional) Map of per-model TPM limitsblocked- (Optional) Whether the project is blocked from making requests
Attribute Reference
In addition to all arguments above, the following attributes are exported:
id- The project ID assigned by LiteLLMspend- Current spend for the projectcreated_at- Timestamp when the project was createdupdated_at- Timestamp when the project was last updatedcreated_by- User that created the projectupdated_by- User that last updated the project
Import
Projects can be imported using the project ID:
terraform import litellm_project.example 4a422a4c-e246-4d02-a1eb-13e835cd0725