litellm/terraform/provider/litellm
Marcus Greer 4e44b382fd
fix(terraform): stop sending blocked on litellm_user updates (#45410)
* fix(terraform): stop sending blocked on litellm_user updates

/user/update writes blocked into the user table upsert, but blocked only
exists as a column on keys, so every litellm_user update failed with a 400
from Prisma. Updates no longer send it. Create sends it only when set to
true, since /user/new applies it to the auto-created key

blocked only applies at creation; litellm_key_block covers changes after that

* fix(terraform): always send blocked on litellm_user create

/user/new fills an omitted blocked from default_internal_user_params, so
leaving it out on create let a proxy-side blocked=true default block the
auto-created key. Create sends the configured value again, including
false, while updates still never send it

* chore(terraform): drop comment on litellm_user create blocked

* fix(terraform): keep litellm_user blocked undeprecated

Create sends blocked again, so it still controls the auto-created key.
Whether to deprecate it in favor of litellm_key_block is left to the
provider maintainers; the docs describe it as creation-only instead
2026-10-10 13:32:54 -07:00
..
client.go fix(terraform): keep unconfigured allowed_routes plan-known and unsent (#44487) 2026-10-06 16:50:45 -07:00
client_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
data_source_access_group.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_access_group_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_agent.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_agent_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_budget.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_budget_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_credential.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
data_source_fallback.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_fallback_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_guardrail.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_guardrail_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_key.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_key_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_mcp_server.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_mcp_server_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_model.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00
data_source_model_test.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00
data_source_organization.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_organization_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_project.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_project_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_prompt.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_prompt_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_search_tool.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_search_tool_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_tag.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_tag_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_team.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_team_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_unified_access_group.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_unified_access_group_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_user.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_user_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
data_source_vector_store.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
provider.go feat(terraform): add litellm_jwt_key_mapping resource (#38714) 2026-08-28 17:10:44 -07:00
provider_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_access_group.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_access_group_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_agent.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_agent_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_budget.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_budget_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_credential.go feat(terraform): make credential adoption opt-in, escape names in request URLs 2026-09-15 10:41:44 -07:00
resource_credential_crud.go feat(terraform): make credential adoption opt-in, escape names in request URLs 2026-09-15 10:41:44 -07:00
resource_credential_crud_test.go feat(terraform): make credential adoption opt-in, escape names in request URLs 2026-09-15 10:41:44 -07:00
resource_fallback.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_fallback_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_guardrail.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_guardrail_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_jwt_key_mapping.go feat(jwt-key-mapping): accept token_id as an alternative to the plaintext key 2026-09-15 23:15:20 +00:00
resource_jwt_key_mapping_crud.go feat(jwt-key-mapping): accept token_id as an alternative to the plaintext key 2026-09-15 23:15:20 +00:00
resource_jwt_key_mapping_crud_test.go feat(jwt-key-mapping): accept token_id as an alternative to the plaintext key 2026-09-15 23:15:20 +00:00
resource_key.go fix(terraform): keep unconfigured allowed_routes plan-known and unsent (#44487) 2026-10-06 16:50:45 -07:00
resource_key_block.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_key_block_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_key_test.go fix(terraform): keep unconfigured allowed_routes plan-known and unsent (#44487) 2026-10-06 16:50:45 -07:00
resource_key_utils.go fix(terraform): send litellm_key model_max_budget as per-model BudgetConfig objects (#40450) 2026-09-09 19:46:26 -07:00
resource_mcp_server.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_mcp_server_crud.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_mcp_server_crud_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_model.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00
resource_model_crud.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00
resource_model_test.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00
resource_organization.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_organization_member.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_organization_member_add.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_organization_member_add_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_organization_member_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_organization_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_project.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_project_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_prompt.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_prompt_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_search_tool.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_search_tool_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_tag.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_tag_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_team.go fix(provider): accept 2xx status codes in unified_access_group create (#42461) 2026-09-28 13:54:37 -07:00
resource_team_block.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_team_block_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_team_member.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_team_member_add.go refactor(terraform): drop explanatory comments from team_member_add 2026-09-15 21:02:12 +00:00
resource_team_member_add_test.go feat(terraform): add tpm_limit, rpm_limit, budget_duration, allowed_models to litellm_team_member_add 2026-09-15 21:02:12 +00:00
resource_team_member_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_team_test.go fix(provider): accept 2xx status codes in unified_access_group create (#42461) 2026-09-28 13:54:37 -07:00
resource_unified_access_group.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_unified_access_group_test.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_user.go fix(terraform): stop sending blocked on litellm_user updates (#45410) 2026-10-10 13:32:54 -07:00
resource_user_test.go fix(terraform): stop sending blocked on litellm_user updates (#45410) 2026-10-10 13:32:54 -07:00
resource_vector_store.go feat(terraform): resource and data source parity with the community provider (#38158) 2026-08-28 16:55:40 -07:00
resource_vector_store_crud.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
resource_vector_store_crud_test.go feat(terraform): vendor terraform-provider-litellm as source of truth with endpoint drift CI (#32241) 2026-07-07 09:16:59 -07:00
types.go fix(terraform): keep unconfigured allowed_routes plan-known and unsent (#44487) 2026-10-06 16:50:45 -07:00
utils.go feat(terraform): add display_name to litellm_model resource and model data sources (#42987) 2026-09-24 17:06:30 -05:00