Skip to main content

A Pulumi package for creating and managing logfire cloud resources.

Project description

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)

Project details


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.11.tar.gz (18.8 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.11-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydantic_pulumi_logfire-0.1.11.tar.gz
Algorithm Hash digest
SHA256 7c1160fcad46916c6c77c8b05eeb5edb131da012ddea00666ddb3c16fbd8673e
MD5 c311812e6ee0723568ec4c1aa27ba81d
BLAKE2b-256 582f7ba7ee56e2d9933018d6f9764e0401647a9e62c1cf7ba50981fd6b635239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydantic_pulumi_logfire-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 469124f13de5338c202d3a8207953b48246408a247fcf6b997a5af1ae8e7266a
MD5 a468e9a72c79f37f085eb03fcef87813
BLAKE2b-256 a35e9ff5d4c72f24885cc1d9cf1622b6e8f2fa0069bb1db261f7f14460073095

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page