Skip to main content

A CDK construct library for Amazon S3 Vectors. This construct simplifies the creation of vector buckets, vector indexes with full configuration options, and Amazon Bedrock knowledge bases using S3 Vectors as the underlying vector store.

Project description

cdk-s3-vectors

AWS CDK v2 npm version PyPI version NuGet version Maven Central

⚠️ Maintenance Notice: This library is intended as a temporary solution and will only be maintained until AWS CloudFormation and CDK introduce native support for Amazon S3 Vectors. Once native support is available, users are encouraged to migrate to the official AWS constructs.

Reference Documentation

Amazon S3 Vectors User Guide

Overview

Amazon S3 Vectors is in preview release and provides native vector storage and similarity search capabilities within Amazon S3.

This AWS CDK construct library provides high-level constructs for Amazon S3 Vectors, enabling you to create vector buckets, indexes, and knowledge bases for AI/ML applications.

The library includes three main constructs:

  • Bucket: Creates S3 vector buckets with optional encryption
  • Index: Creates vector indexes within buckets for similarity search
  • KnowledgeBase: Creates Amazon Bedrock knowledge bases using S3 Vectors as the vector store

Getting Started

Language Package
Python Logo Python pip install cdk-s3-vectors
TypeScript Logo TypeScript/JavaScript npm install cdk-s3-vectors
.NET Logo .NET dotnet add package bimnett.CdkS3Vectors

For Java, add the following to your pom.xml file:

<dependency>
  <groupId>io.github.bimnett</groupId>
  <artifactId>cdk-s3-vectors</artifactId>
  <version>LATEST</version>
</dependency>

Examples

For complete, deployable examples in all supported languages, see the examples directory.

API Reference

The API reference can be found here.

Architecture

graph TD
    subgraph "CDK Application"
        A[Bucket Construct]
        C[Index Construct]
        E[KnowledgeBase Construct]
    end

    subgraph "AWS Cloud<br>"
        CR[CloudFormation<br>Custom Resources]
        G[Lambda Function]
        H[S3 Vectors API]
        I[Bedrock API]

        B[S3 Vector Bucket]
        D[S3 Vector Index]
        F[Bedrock Knowledge Base]
    end

    A -- defines --> CR
    C -- defines --> CR
    E -- defines --> CR

    CR -- invokes --> G

    G -- calls --> H
    G -- calls --> I

    H -- creates --> B
    H -- creates --> D
    I -- creates --> F

License

This project is licensed under the Apache License 2.0. See LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk_s3_vectors-0.3.2.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_s3_vectors-0.3.2-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file cdk_s3_vectors-0.3.2.tar.gz.

File metadata

  • Download URL: cdk_s3_vectors-0.3.2.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.14.0

File hashes

Hashes for cdk_s3_vectors-0.3.2.tar.gz
Algorithm Hash digest
SHA256 429e37b463268411ed9ebd3598713b0b8b01f85ae97e0d8b9cf34b0665d85309
MD5 e716c3655349d6f9f8d749468e830d1a
BLAKE2b-256 d07981cecd3f998c99981e48cd2eadbc85f5eb6052e3f1a3256d58398631d2ba

See more details on using hashes here.

File details

Details for the file cdk_s3_vectors-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: cdk_s3_vectors-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.14.0

File hashes

Hashes for cdk_s3_vectors-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 724e57c43ee846de613cf7024ab860cbcb7dc887c67d05ebc37fafd0ef6ec62a
MD5 0d50eb643ff0041e97c45a90be122e28
BLAKE2b-256 7da7150a2b6a944cc35f1c5910136054525ee7a2df9e9761d6a237707a162a6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page