npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aws-mdaa/bedrock-builder-l3-construct

v1.4.0

Published

MDAA Bedrock Builder L3 Construct

Downloads

31

Readme

Construct Overview

The Bedrock Builder CDK L3 construct is used to configure and deploy a secure Bedrock Builder and associated resources.


Deployed Resources

bedrock-builder

  • Bedrock Builder: Deploys Amazon Bedrock Components(s) to streamline workflows and/or automate repetitive tasks using Foundational Models

  • Bedrock Execution Policies: For Knowledge Bases, the construct creates consolidated IAM policies per execution role:

    • Vector Store Policy: Permissions for Aurora PostgreSQL (rds-data, secretsmanager) or OpenSearch Serverless (aoss:APIAccessAll)
    • Foundation Model Policy: Permissions to invoke embedding and parsing models (bedrock:InvokeModel)
    • Data Sync Policy: Permissions for data source synchronization (bedrock:StartIngestionJob, GetIngestionJob, ListIngestionJobs)

    Policies are consolidated per role - multiple KBs sharing the same role share the same 3 policies to avoid hitting the AWS limit of 10 managed policies per role.

  • Bedrock Execution Role: Execution policies are attached to the KB execution role. This role should have Bedrock Service as a Trusted Principal.

  • Bedrock KMS Key: Encrypt Bedrock resources with the KMS Key. One will be generated if a KMS key is not provided as part of Configuration

  • Lambdas: (Optional) Allows you to generate Lambda Layer, Lambda Function or both, which can be associate with Agent Action Group. (Refer: MDAA DataOps-LambdaFunctions)

    • Lambda Layers - Lambda layers which can be used in Lambda functions (inside or outside of this config).
    • Lambda Functions - Lambda function(s) for Agent Action Group(s)
      • May be optionally VPC bound with configurable VPC, Subnet, and Security Group Paramters

      • Can use an existing security group (from Project, for instance), or create a new security group per function

      • If creating a per-function security group:

        • All egress allowed by default (configurable)
        • No ingress allowed (not configurable)
  • Action Group(s): Create Agent Action group for Bedrock Agent. It allows you to either use an existing Lambda function (by providing its ARN directly) or create a new one as part of the agent configuration. The generated-function: prefix tells the system to use the Lambda that was created from the configuration rather than looking for an existing function ARN

  • Bedrock Guardrail: (Optional) If Bedrock Guardrail is mentioned in the configuration, the Agent will be associate with Bedrock Guardrail.

    Bedrock execution policy will also be updated to allow ApplyGuardrail permission on the provided GuardrailID

  • OpenSearch Serverless VPC Endpoints: For OpenSearch Serverless vector stores, the construct automatically creates VPC endpoints for secure connectivity. If you already have an existing VPC endpoint for OpenSearch Serverless in your VPC, you can provide the endpoint ID and security group ID in the vector store configuration to reuse it instead of creating a new one. This prevents deployment failures when a VPC endpoint already exists.

Configuration

Using Existing OpenSearch Serverless VPC Endpoints

If you already have an OpenSearch Serverless VPC endpoint in your VPC, you can configure the vector store to use it instead of creating a new one. This is useful when:

  • You have an existing VPC endpoint that you want to reuse across multiple deployments
  • You want to avoid deployment failures caused by attempting to create duplicate VPC endpoints
  • You need to manage VPC endpoints separately from your Bedrock deployment

To use an existing VPC endpoint, add the ossVpce property with vpceId and securityGroupId to your OpenSearch Serverless vector store configuration:

vectorStores:
  my-vector-store:
    vectorStoreType: OPENSEARCH_SERVERLESS
    vpcId: "vpc-1234567890abcdef0"
    subnetIds: 
      - "subnet-1234567890abcdef0"
      - "subnet-0987654321fedcba0"
    standbyReplicas: ENABLED
    # Provide existing VPC endpoint details to reuse instead of creating new
    ossVpce:
      vpceId: "vpce-1234567890abcdef0"
      securityGroupId: "sg-1234567890abcdef0"

Important Notes:

  • The ossVpce configuration is only applicable to OpenSearch Serverless vector stores (not Aurora Serverless)
  • Both vpceId and securityGroupId must be provided together within ossVpce
  • If multiple OpenSearch Serverless vector stores use the same VPC, they must all use the same existing VPC endpoint configuration or all create a new one
  • The existing VPC endpoint must be configured for OpenSearch Serverless service
  • The security group must allow appropriate network access for your use case

For a complete configuration example, see sample_configs/genai_accelerator/ai/bedrock-builder.yaml.