1. Packages
  2. Grafana Cloud
Grafana v0.9.0 published on Thursday, Dec 12, 2024 by pulumiverse

Grafana Cloud

grafana logo
Grafana v0.9.0 published on Thursday, Dec 12, 2024 by pulumiverse

    The Grafana provider for Pulumi can be used to provision any of the cloud resources available in Grafana Cloud or a self hosted Grafana instance The Grafana provider must be configured with credentials to deploy and update resources in Grafana.

    Example

    import * as grafana from "@pulumiverse/grafana";
    
    const stack = new grafana.cloud.Stack("stack", {
        name: "<stack-name>",
        slug: "<stack-name>",
        // Regions https://grafana.com/api/stack-regions
        regionSlug: "<region>",
    });
    
    const serviceAccount = new grafana.cloud.StackServiceAccount("serviceAccount", {
        stackSlug: stack.slug,
        name: "Service account",
        role: "Admin",
    });
    
    const serviceAccountToken = new grafana.cloud.StackServiceAccountToken("serviceAccountToken", {
        stackSlug: stack.slug,
        name: "Service account token",
        serviceAccountId: serviceAccount.id,
    });
    
    const serviceAccountProvider = new grafana.Provider("serviceAccountProvider", {
        auth: serviceAccountToken.key,
        url: stack.url.apply((url) => url as string),
    });
    
    const testFolder = new grafana.oss.Folder(
        "folder",
        { title: "Folder title" },
        { provider: serviceAccountProvider }
    );
    
    import pulumiverse_grafana as grafana
    
    service_account = grafana.ServiceAccount(
        "example",
        role="Viewer"
    )
    

    Issues

    This is a community maintained provider. Please file issues and feature requests here:

    pulumiverse/pulumi-grafana

    grafana logo
    Grafana v0.9.0 published on Thursday, Dec 12, 2024 by pulumiverse