1. Packages
  2. Packages
  3. CAST AI
  4. Installation & Configuration
Viewing docs for CAST AI v7.73.2
published on Wednesday, Oct 29, 2025 by CAST AI

CAST AI: Installation & Configuration

castai logo
Viewing docs for CAST AI v7.73.2
published on Wednesday, Oct 29, 2025 by CAST AI

    Installation

    The Pulumi CAST AI provider is available as a package in all Pulumi languages:

    Node.js (JavaScript/TypeScript)

    npm install @castai/pulumi
    

    Python

    pip install pulumi_castai
    

    Go

    go get github.com/castai/pulumi-castai/sdk/go/castai@latest
    

    Setup

    To use the CAST AI provider, you need to have a CAST AI account and an API token. You can sign up for a CAST AI account at https://cast.ai and generate an API token from the CAST AI console.

    Authentication

    The CAST AI provider requires an API token for authentication. You can provide this token in several ways:

    1. Set the CASTAI_API_TOKEN environment variable:
    export CASTAI_API_TOKEN=your-api-token-here
    
    1. Provide the token directly in your Pulumi program:
    import * as castai from "@castai/pulumi";
    
    const provider = new castai.Provider("castai-provider", {
        apiToken: "your-api-token-here",
    });
    
    import pulumi_castai as castai
    
    provider = castai.Provider("castai-provider", api_token="your-api-token-here")
    
    import (
        "github.com/castai/pulumi-castai/sdk/go/castai"
        "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
        pulumi.Run(func(ctx *pulumi.Context) error {
            provider, err := castai.NewProvider(ctx, "castai-provider", &castai.ProviderArgs{
                ApiToken: pulumi.String("your-api-token-here"),
            })
            if err != nil {
                return err
            }
    
            // Use the provider to create resources
            return nil
        })
    }
    

    Configuration Options

    The CAST AI provider accepts the following configuration options:

    OptionDescriptionEnvironment VariableDefault
    apiTokenCAST AI API tokenCASTAI_API_TOKEN-
    apiUrlCAST AI API URLCASTAI_API_URLhttps://api.cast.ai

    Cloud Provider Credentials

    To connect your Kubernetes clusters to CAST AI, you’ll need to provide credentials for your cloud provider. The specific credentials required depend on the cloud provider:

    AWS (EKS)

    For AWS EKS clusters, you’ll need:

    • AWS Access Key ID and Secret Access Key
    • AWS Region
    • EKS Cluster Name
    • Security Group ID
    • Subnet IDs

    GCP (GKE)

    For GCP GKE clusters, you’ll need:

    • GCP Project ID
    • GCP Location (region or zone)
    • GKE Cluster Name
    • GCP Credentials (service account key)

    Azure (AKS)

    For Azure AKS clusters, you’ll need:

    • Azure Subscription ID
    • Azure Tenant ID
    • Azure Resource Group Name
    • AKS Cluster Name
    castai logo
    Viewing docs for CAST AI v7.73.2
    published on Wednesday, Oct 29, 2025 by CAST AI

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial