Files
terraform-provider-litellmv…/test/e2e/main.tf
unkinben 4e57e2dba7
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
Rename resources to litellm_secret_* prefix
Use the shorter, cleaner litellm_ resource prefix instead of
litellmvaultsecret_. The provider source stays git.unkin.net/unkin/
litellmvaultsecret; only the resource prefix (provider Metadata TypeName)
changes to litellm, declared under the local name litellm in
required_providers — the same pattern google-beta uses to ship google_*.

- Provider TypeName litellmvaultsecret -> litellm
- Resources: litellm_secret_backend, litellm_secret_backend_role
- Update examples (dirs + contents), README, and the e2e terraform config
2026-07-03 12:29:39 +10:00

30 lines
689 B
Terraform

terraform {
required_providers {
litellm = {
source = "git.unkin.net/unkin/litellmvaultsecret"
}
}
}
provider "litellm" {
address = "http://127.0.0.1:8200"
token = "root"
}
resource "litellm_secret_backend" "litellm" {
path = "litellm"
description = "LiteLLM dynamic virtual keys (e2e)"
# Reachable from inside the vault container, where the plugin runs.
base_url = "http://litellm:4000"
master_key = "sk-master-e2e-1234"
}
resource "litellm_secret_backend_role" "team_a" {
backend = litellm_secret_backend.litellm.path
name = "team-a"
models = ["gpt-3.5-turbo"]
max_budget = 10
ttl = 3600
max_ttl = 86400
}