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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_pulumi_logfire-0.1.16.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_pulumi_logfire-0.1.16-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file pydantic_pulumi_logfire-0.1.16.tar.gz.

File metadata

  • Download URL: pydantic_pulumi_logfire-0.1.16.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.8

File hashes

Hashes for pydantic_pulumi_logfire-0.1.16.tar.gz
Algorithm Hash digest
SHA256 bb6b23cc05d6f1491e7accd3ffb17ec51132df4c6a5a036de036f0daef55e49a
MD5 de9b9b4bec0b140e702829b209947474
BLAKE2b-256 bd27908219668b02e0e77f06dcb4846eaef2d3a8bb937a8066aa4714fc88a78d

See more details on using hashes here.

File details

Details for the file pydantic_pulumi_logfire-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_pulumi_logfire-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1878dd19d3de44863e742cf32085c34c79257b02b3955f1b75f37b3c459446ef
MD5 2ac3ed50abd8a9fa37650c7ea45fdc27
BLAKE2b-256 05e0f44ce1b77cfc70cb4b25eb8bb98b6e4d3d9192e2bbb3f450979ea0f90b79

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

This release

0.1.16 This release

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 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