Skip to content

Quick Start

Get started with the Kubrick CLI

Get Kubrick deployed to AWS in minutes using our interactive CLI tool. The CLI handles all the complex Terraform operations and guides you through the setup process.

Before starting, ensure you have the following installed and configured:

  • AWS account with appropriate permissions
  • AWS CLI configured with your credentials: aws configure

Your AWS user/role needs these permissions: AmazonS3FullAccess, AWSLambdaFullAccess, AmazonAPIGatewayAdministrator, CloudFrontFullAccess, AmazonSQSFullAccess, AmazonRDSFullAccess ,SecretsManagerReadWrite, IAMFullAccess

  • You will need a TwelveLabs API key. If you don’t have one, you can get one here
  1. Clone the Repository

    Terminal window
    git clone https://github.com/kubrick-ai/kubrick.git
    cd kubrick
  2. Build and Install the CLI

    Terminal window
    cd cli
    npm run build

    The CLI is now installed globally and available as kubrick within the root folder (You may need to restart your shell).

  3. Deploy Infrastructure

    Run the interactive deployment:

    Terminal window
    kubrick deploy

    The CLI will guide you through:

    • Building Lambda packages
    • AWS Profile and region selection
    • Database credentials setup
    • TwelveLabs API key configuration
    • Terraform deployment process

    Run kubrick --help for command options

  4. Wait for Deployment

    Deployment typically takes 10-15 minutes. The CLI will show progress and any issues encountered.

Once deployment completes successfully:

  1. Access the Playground

    The CLI will provide you with the CloudFront URL for your deployed playground interface.

  2. Upload a Test Video

    Use the playground interface to upload a video file and verify the ingestion pipeline works.

  3. Perform a Search

    Try searching for content in your uploaded video using natural language queries.

Your Kubrick deployment includes:

  • API Gateway - RESTful API for video upload and search
  • AWS Lambda Functions - Video processing and API endpoints
  • CloudFront Distribution - Global content delivery for the playground
  • S3 Buckets - Video storage and static assets
  • RDS PostgreSQL - Database for video metadata, embeddings tasks, and vector embeddings (with pgvector).
  • SQS Queue - Asynchronous processing pipeline
  • Secrets Manager - Secure credential storage

To destroy your deployment, just type kubrick destroy.

  • Explore the API: Check out the API Reference for integration details
  • Advanced Configuration: Learn about Manual Setup for custom deployments
  • Architecture Deep Dive: Read our Case Study to understand how Kubrick works

Deployment Issues

AWS Permissions

  • Verify your AWS CLI configuration with aws sts get-caller-identity
  • Authenticate your AWS CLI with aws configure sso