GithubHelp home page GithubHelp logo

mongodb-partners / mongodb_atlas_as_aws_bedrock_knowledge_base Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 3.94 MB

a repository for demonstrating MongoDB Atlas Vector store and Search and AWS Bedrock's knowledge base

JavaScript 21.84% TypeScript 78.16%

mongodb_atlas_as_aws_bedrock_knowledge_base's Issues

VPC lookup function is not configured properly

While running cdk bootstrap, the default VPC ID and VPC CIDR are shown in the logs.

> cdk bootstrap
VPC ID: vpc-12345
VPC CIDR: 1.2.3.4/5
[]
Ports: 1024,1025,1026
Security Group ID: ${Token[TOKEN.21]}
Load Balancer ARN: ${Token[TOKEN.34]}
VPC Endpoint IPs: 10.0.0.7
Listener ARN for port 1024: ${Token[TOKEN.38]}
IP Targets for port 1024: [{"ipAddress":"10.0.0.7","port":1024}]
Listener ARN for port 1025: ${Token[TOKEN.57]}
IP Targets for port 1025: [{"ipAddress":"10.0.0.7","port":1025}]
Listener ARN for port 1026: ${Token[TOKEN.76]}
IP Targets for port 1026: [{"ipAddress":"10.0.0.7","port":1026}]

After debugging, I found that the following line lib\mongodb_atlas_as_aws_bedrock_knowledge_base-stack.ts is not configured properly as per CDK Lib docs

const vpc = ec2.Vpc.fromLookup(this, vpcId, { isDefault: false });`

This line has to be modified as the following to make this work.

const vpc = ec2.Vpc.fromLookup(this, 'Vpc', { isDefault: false, vpcId: vpcId });`

Basically this filters the VPC using VPC ID.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.