* 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
1.5 KiB
| page_title | subcategory | description |
|---|---|---|
| litellm_access_group Resource - terraform-provider-litellm | Manages a LiteLLM model access group. |
litellm_access_group (Resource)
Manages a LiteLLM model access group. Access groups bundle model deployments under one name so keys and teams can be granted access to the whole group at once.
Example Usage
resource "litellm_access_group" "production" {
access_group = "production-models"
model_names = ["gpt-4", "claude-3-sonnet"]
}
# Target specific deployments by model ID instead of model name
resource "litellm_access_group" "pinned" {
access_group = "pinned-deployments"
model_ids = ["4dbd9f43-...", "9a1e2c77-..."]
}
Argument Reference
-
access_group- (Required, Forces new resource) Name of the access group. -
model_names- (Optional) List of model names (themodel_nameof each deployment) to include in the group. At least one ofmodel_namesormodel_idsmust be set. -
model_ids- (Optional) List of specific deployment model IDs to include in the group. Takes precedence overmodel_nameswhen both are set.
Attribute Reference
In addition to the arguments above, the following attributes are exported:
-
id- The access group name. -
deployment_count- Number of deployments currently tagged with this access group.
Import
Access groups can be imported using the access group name:
terraform import litellm_access_group.production production-models