Skip to main content

Logfire Resource Provider

Manage Pydantic Logfire projects, alerts, dashboards, channels, and API tokens with Pulumi.

Installing

This package is available for several languages/platforms:

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

npm install @pydantic/pulumi-logfire

or yarn:

yarn add @pydantic/pulumi-logfire

Python

To use from Python, install using pip:

pip install pydantic-pulumi-logfire

Import it in code as pulumi_logfire.

Go

To use from Go, use go get to grab the latest version of the library:

go get github.com/pydantic/pulumi-logfire/sdk/go/logfire

Configuration

The following configuration points are available for the logfire provider:

  • logfire:baseUrl (environment: LOGFIRE_BASE_URL) – Optional override for the Logfire API base URL. If omitted, the provider uses LOGFIRE_BASE_URL or infers the SaaS endpoint from the API key region. Self-hosted customers should set this explicitly.
  • logfire:apiKey (environment: LOGFIRE_API_KEY) – Bearer token for the Logfire API.

Example stack config:

pulumi config set --secret logfire:apiKey pylf_v2_us_...
# Self-hosted only:
# pulumi config set logfire:baseUrl https://<self-hosted-logfire>

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.

Importing existing resources

Existing Logfire resources can be imported into Pulumi state with pulumi import. For resources that are easy to look up by name or slug, prefer the name-based import IDs:

Resource Recommended import ID Example
logfire:Project organization/project-name pulumi import logfire:index/project:Project prod "acme/prod-logs"
logfire:Alert project-name/alert-name pulumi import logfire:index/alert:Alert errors "prod-logs/error-alert"
logfire:Dashboard project-name/dashboard-slug pulumi import logfire:index/dashboard:Dashboard overview "prod-logs/prod-overview"

UUID-based import IDs are also supported if you already have the backend IDs. The separators /, ,, and | are accepted for multi-part import IDs.

Reference

For detailed reference documentation, please visit the Pulumi registry.

Resources

  • Projects (logfire:Project)
  • Channels (logfire:Channel)
  • Alerts (logfire:Alert)
  • Dashboards (logfire:Dashboard)
  • Write tokens (logfire:WriteToken)
  • Read tokens (logfire:ReadToken)
  • Organizations (logfire:Organization)

Metadata

Release files for pydantic-pulumi-logfire 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic-pulumi-logfire 0.3.0
File Size Uploaded Provenance Actions
pydantic_pulumi_logfire-0.3.0.tar.gz 57.7 kB Without provenance Details for pydantic_pulumi_logfire-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-pulumi-logfire 0.3.0
File Interpreter ABI Platform Actions
pydantic_pulumi_logfire-0.3.0-py3-none-any.whl Python 3 none any Details for pydantic_pulumi_logfire-0.3.0-py3-none-any.whl

Total release size: 137.7 kB

Release files / pydantic_pulumi_logfire-0.3.0.tar.gz

Download URL pydantic_pulumi_logfire-0.3.0.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ae341deca93b43b8fdd8124917fd0c84d0a481e59524871ca3855d0e9c0372
BLAKE2b-256 checksum
How to use checksums
0dd48bdf6e91451d1475b24407bcf8ee1e76ee6149e04e1f8c930f03e3f058cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Release files / pydantic_pulumi_logfire-0.3.0-py3-none-any.whl

Download URL pydantic_pulumi_logfire-0.3.0-py3-none-any.whl
Size 80.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a008793b6069f7ffef0c52d0b111eb28b21bed8f5e3410bad8d0822fb63384a5
BLAKE2b-256 checksum
How to use checksums
64e6ca1794abdc67480bf0dd73d43644bbbdf75edaeea5bbd879950534b5819d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.8

Security for pydantic-pulumi-logfire 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page