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)

Release files for pydantic-pulumi-logfire 0.2.1

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.2.1
File Size Uploaded
pydantic_pulumi_logfire-0.2.1.tar.gz 48.7 kB Details

Built distribution (wheel)

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

Total release size: 115.6 kB

Release files / pydantic_pulumi_logfire-0.2.1.tar.gz

Download URL pydantic_pulumi_logfire-0.2.1.tar.gz
Size 48.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47fc50f10dd6d313c97cb7f548fc3adcc0a2bed278e3495922e67ec4c9ee3694
BLAKE2b-256 checksum
How to use checksums
8ece754a973479fca02339a5b315d36f11d7fbb7b050b0ac06c3bd854343458c
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.2.1-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.18

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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