⚠️ 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.
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
| Language | Package |
|---|---|
Python |
pip install cdk-s3-vectors |
TypeScript/JavaScript |
npm install cdk-s3-vectors |
.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>For complete, deployable examples in all supported languages, see the examples directory.
The API reference can be found here.
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
This project is licensed under the Apache License 2.0. See LICENSE file for details.


