litellm/terraform
Matthew Howard c788769129 fix(terraform): recognize a credential name conflict and adopt the existing credential
The proxy answered a duplicate credential_name with a 500 carrying Prisma's
unique-constraint message, so terraform apply against a credential the state
had lost died with an opaque database error. Classify that response as a
conflict, adopt the existing credential with a PATCH that carries model_id,
and set the resource ID only once the adopt succeeds so a failed PATCH does
not taint a credential this run never owned

Squashed from the commits on #39745 with authorship preserved

Fixes https://github.com/BerriAI/terraform-provider-litellm/issues/8
2026-09-14 15:18:14 -07:00
..
litellm fix(helm): give the collector sidecar the pod PgBouncer env when database.connectionPool is enabled (#40660) 2026-09-11 02:07:04 +00:00
provider fix(terraform): recognize a credential name conflict and adopt the existing credential 2026-09-14 15:18:14 -07:00