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.
Prerequisites
Section titled “Prerequisites”Before starting, ensure you have the following installed and configured:
Required Software
Section titled “Required Software”- Terraform (>= 1.0) - Installation Guide
- AWS CLI (>= 2.15.0) - Installation Guide
- Python (>= 3.13) - Installation Guide
- uv - Installation Guide
- Node.js (>= 24.2.0) & npm (>= 11.4.2) - Installation Guide
AWS Account Setup
Section titled “AWS Account Setup”- 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
TwelveLabs API Key
Section titled “TwelveLabs API Key”- You will need a TwelveLabs API key. If you don’t have one, you can get one here
Installation and Deployment
Section titled “Installation and Deployment”-
Clone the Repository
Terminal window git clone https://github.com/kubrick-ai/kubrick.gitcd kubrick -
Build and Install the CLI
Terminal window cd clinpm run buildThe CLI is now installed globally and available as
kubrick
within the root folder (You may need to restart your shell). -
Deploy Infrastructure
Run the interactive deployment:
Terminal window kubrick deployThe 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 -
Wait for Deployment
Deployment typically takes 10-15 minutes. The CLI will show progress and any issues encountered.
Testing Your Deployment
Section titled “Testing Your Deployment”Once deployment completes successfully:
-
Access the Playground
The CLI will provide you with the CloudFront URL for your deployed playground interface.
-
Upload a Test Video
Use the playground interface to upload a video file and verify the ingestion pipeline works.
-
Perform a Search
Try searching for content in your uploaded video using natural language queries.
What Gets Deployed
Section titled “What Gets Deployed”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
Teardown
Section titled “Teardown”To destroy your deployment, just type kubrick destroy
.
Next Steps
Section titled “Next Steps”- 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
Need Help?
Section titled “Need Help?”Deployment Issues
- See the Manual Setup troubleshooting section
AWS Permissions
- Verify your AWS CLI configuration with
aws sts get-caller-identity
- Authenticate your AWS CLI with
aws configure sso