Installation
Node.js (TypeScript/JavaScript)#
Package page: npm
npm install @pydantic/pulumi-logfirePython#
Package page: PyPI
pip install pydantic-pulumi-logfireImport it in code as pulumi_logfire.
Go#
Package page: pkg.go.dev
go get github.com/pydantic/pulumi-logfire/sdk/go/logfireProvider Configuration#
Set provider config with Pulumi config values (recommended):
pulumi config set --secret logfire:apiKey pylf_v2_us_...
# Self-hosted only:
# pulumi config set logfire:baseUrl https://<self-hosted-logfire>You can also use environment variables:
LOGFIRE_API_KEYLOGFIRE_BASE_URL(optional override; self-hosted customers should set this)
For Logfire SaaS, the provider infers https://logfire-us.pydantic.dev or https://logfire-eu.pydantic.dev from the API key region. If you set logfire:baseUrl or LOGFIRE_BASE_URL, that value is used instead.
Configuration Reference#
logfire:baseUrl(string): Optional override for the Logfire API base URL. If omitted, the provider usesLOGFIRE_BASE_URLor infers the SaaS endpoint from the API key region. Self-hosted customers should set this explicitly.logfire:apiKey(secret string): Bearer token for the Logfire API.