Viewing docs for CAST AI v7.73.2
published on Wednesday, Oct 29, 2025 by CAST AI
published on Wednesday, Oct 29, 2025 by CAST AI
CAST AI: Installation & Configuration
Viewing docs for CAST AI v7.73.2
published on Wednesday, Oct 29, 2025 by CAST AI
published on Wednesday, Oct 29, 2025 by CAST AI
Installation
The Pulumi CAST AI provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@castai/pulumi - Python:
pulumi-castai - Go:
github.com/castai/pulumi-castai/sdk/go/castai
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:
- Set the
CASTAI_API_TOKENenvironment variable:
export CASTAI_API_TOKEN=your-api-token-here
- 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:
| Option | Description | Environment Variable | Default |
|---|---|---|---|
apiToken | CAST AI API token | CASTAI_API_TOKEN | - |
apiUrl | CAST AI API URL | CASTAI_API_URL | https://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
Viewing docs for CAST AI v7.73.2
published on Wednesday, Oct 29, 2025 by CAST AI
published on Wednesday, Oct 29, 2025 by CAST AI
