litellm/terraform/provider/litellm
Mateo Wang dfb949d437
fix(terraform)!: send additional_drop_params to the proxy instead of deleting the keys it names (#46782)
* fix(terraform): send additional_drop_params to the proxy instead of deleting the keys it names

litellm_model treated additional_drop_params in additional_litellm_params as a
provider-side delete list: it never sent the list and removed every key it named
from litellm_params, so vertex_location vanished and requests still carried
store. The list now goes to the proxy like any other JSON value, so the proxy
drops those params per request. Approach credited to #38345.

Fixes #38349

* fix(terraform)!: validate additional_drop_params and read it back from the proxy on refresh

* docs(terraform): note that a non-list additional_drop_params now fails the apply

* fix(terraform)!: check additional_drop_params at plan time and refresh listed keys and outside lists

* fix(terraform)!: show every listed key an older provider deleted in the upgrade plan and leave outside drop lists alone

Refresh no longer reads listed keys back from the proxy, which left a
plan diff that never cleared when a listed key was removed from config.
When the proxy has no stored list, the plan now shows the list and each
listed key the config sets as changes. A drop list set outside Terraform
on a model whose config has none stays out of the plan, and an empty
value now fails the plan

* fix(terraform): show a listed merge_reasoning_content_in_choices in the upgrade plan

The refresh now clears merge_reasoning_content_in_choices when it is listed and the proxy has no stored list, since an older provider deleted it, and no longer clears litellm_credential_name, which the older provider always sent
2026-10-16 02:24:47 +00:00
..
client.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00:00
client_test.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00: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): write-only secret attributes to keep secrets out of state (#46538) 2026-10-15 15:36:15 -07:00
resource_credential_crud.go feat(terraform): write-only secret attributes to keep secrets out of state (#46538) 2026-10-15 15:36:15 -07:00
resource_credential_crud_test.go feat(terraform): write-only secret attributes to keep secrets out of state (#46538) 2026-10-15 15:36:15 -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 fix(terraform): stop the perpetual plan diff on litellm_mcp_server (#46781) 2026-10-15 16:57:05 -07:00
resource_mcp_server_crud.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00:00
resource_mcp_server_crud_test.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00:00
resource_model.go fix(terraform)!: send additional_drop_params to the proxy instead of deleting the keys it names (#46782) 2026-10-16 02:24:47 +00:00
resource_model_crud.go fix(terraform)!: send additional_drop_params to the proxy instead of deleting the keys it names (#46782) 2026-10-16 02:24:47 +00:00
resource_model_test.go fix(terraform)!: send additional_drop_params to the proxy instead of deleting the keys it names (#46782) 2026-10-16 02:24:47 +00: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 feat(terraform): add team_member_model_max_budget to litellm_team (#46274) 2026-10-14 15:52:54 -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 feat(terraform): add team_member_model_max_budget to litellm_team (#46274) 2026-10-14 15:52:54 -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): write-only secret attributes to keep secrets out of state (#46538) 2026-10-15 15:36:15 -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): write-only secret attributes to keep secrets out of state (#46538) 2026-10-15 15:36:15 -07:00
types.go fix(terraform)!: send additional_drop_params to the proxy instead of deleting the keys it names (#46782) 2026-10-16 02:24:47 +00:00
utils.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00:00
utils_test.go fix(terraform): accept 2xx from the proxy in mcp server, model, key and org requests (#46550) 2026-10-16 00:40:24 +00:00