litellm/terraform/provider/docs/data-sources/prompt.md
Shivam Rawat 3653e5893f
feat(terraform): resource and data source parity with the community provider (#38158)
* 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
2026-08-28 16:55:40 -07:00

43 lines
1.4 KiB
Markdown

# litellm_prompt Data Source
Retrieves information about an existing LiteLLM prompt by ID. The provider API key is not exposed.
## Example Usage
```hcl
data "litellm_prompt" "existing" {
prompt_id = "my-langfuse-prompt"
}
output "prompt_integration" {
value = data.litellm_prompt.existing.prompt_integration
}
```
### With Environment
```hcl
data "litellm_prompt" "prod" {
prompt_id = "my-langfuse-prompt"
environment = "production"
}
```
## Argument Reference
* `prompt_id` - (Required) Unique identifier of the prompt to retrieve.
* `environment` - (Optional) Environment to fetch the prompt from (e.g. `development`, `production`).
## Attribute Reference
* `prompt_integration` - The prompt integration provider.
* `api_base` - Base URL for the prompt provider API.
* `provider_specific_query_params` - JSON string of provider-specific query parameters.
* `ignore_prompt_manager_model` - Whether the model specified in the prompt manager is ignored.
* `ignore_prompt_manager_optional_params` - Whether optional params from the prompt manager are ignored.
* `dotprompt_content` - Content for the dotprompt integration.
* `prompt_type` - Type of prompt: `config` or `db`.
* `version` - Version number of the prompt.
* `environments` - List of environments this prompt exists in.
* `created_at` - Timestamp when the prompt was created.
* `updated_at` - Timestamp when the prompt was last updated.