1. Packages
  2. Packages
  3. Logfire
Viewing docs for Logfire v0.1.11
published on Tuesday, May 19, 2026 by Pydantic
logfire logo
Viewing docs for Logfire v0.1.11
published on Tuesday, May 19, 2026 by Pydantic

    Logfire Provider

    The Logfire provider for Pulumi lets you manage Logfire resources as code, including:

    • Projects
    • Channels
    • Alerts
    • Dashboards
    • Read tokens
    • Write tokens
    • Organizations

    Example

    TypeScript

    import * as logfire from "@pydantic/pulumi-logfire";
    
    const project = new logfire.Project("exampleProject");
    

    Python

    import pulumi_logfire as logfire
    
    project = logfire.Project("exampleProject")
    

    Go

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pydantic/pulumi-logfire/sdk/go/logfire"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := logfire.NewProject(ctx, "exampleProject", nil)
    		return err
    	})
    }
    

    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:

    ResourceRecommended import IDExample
    logfire:Projectorganization/project-namepulumi import logfire:index/project:Project prod "acme/prod-logs"
    logfire:Alertproject-name/alert-namepulumi import logfire:index/alert:Alert errors "prod-logs/error-alert"
    logfire:Dashboardproject-name/dashboard-slugpulumi 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.

    logfire logo
    Viewing docs for Logfire v0.1.11
    published on Tuesday, May 19, 2026 by Pydantic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial