Recommended Free Tools
iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
You can build this RAG architecture with Terraform by storing source documents in S3, using Amazon Bedrock Knowledge Bases to manage ingestion and retrieval, and choosing OpenSearch Serverless as the vector store. The important caveat is that AWS’s published Terraform RAG pattern is not a ready-made implementation of that exact stack: its example uses LangChain with Aurora PostgreSQL-Compatible. Treat the Knowledge Bases and OpenSearch Serverless design as a separate implementation whose provider resources and arguments you must verify against the versions you pin.
How the S3-to-answer data path works
- Store source documents in S3. Configure the bucket or permitted object scope as the Knowledge Base data source.
- Configure the Knowledge Base. Bedrock Knowledge Bases manages the connected-data ingestion and retrieval flow. Its storage configuration identifies the OpenSearch Serverless collection, vector index, and field mappings.
- Ingest and index the content. The configured embedding model and index fields must agree with the Knowledge Base configuration. Field names and embedding setup are choices to make for the deployment, not universal constants.
- Retrieve relevant content for an application. The Knowledge Base uses the indexed data during retrieval. This article covers provisioning the infrastructure boundary, not an application’s prompt design or response evaluation.
Keep the S3 source, embedding configuration, index mapping, and Knowledge Base settings consistent. A mismatch in the index fields or embedding setup can prevent the intended documents from being indexed or retrieved as expected.
What Terraform should provision—and what AWS’s example does not provide
Terraform can describe the infrastructure for this design, but AWS’s published Terraform RAG pattern should not be copied as though it were an exact S3, Bedrock Knowledge Bases, and OpenSearch Serverless template. That pattern demonstrates LangChain with Aurora PostgreSQL-Compatible as its vector store; it identifies Bedrock Knowledge Bases and OpenSearch Service as alternatives.
| Implementation path | What it provides | What to plan for |
|---|---|---|
| AWS’s Terraform RAG example | A Terraform RAG pattern using LangChain and Aurora PostgreSQL-Compatible | It is not the exact managed Knowledge Bases and OpenSearch Serverless stack described here. |
| Bedrock Knowledge Bases with OpenSearch Serverless | Managed Knowledge Base ingestion and retrieval with OpenSearch Serverless as a supported vector-store option | Configure the collection, vector index, field mappings, service-role permissions, and network access for your deployment. |
Use the AWS provider documentation for the provider version you intend to pin before writing resource blocks. The available source material does not establish a complete Terraform module, resource argument set, or provider version for this exact combination, so presenting copy-and-run Terraform here would imply verification that has not been established.
#1 Best Overall
- Adjustable Depth: 23-40'' adjustable depth is used for servers and network equipment, ensuring enough space for AV equipment, components, and cabling, while allowing you to access ports and equipment from multiple sides.
- Strong Load Capacity: Ground-Mounted Load Capacity: 500 lbs, Wall-Mounted Load Capacity: 150 lbs. The av rack is made of carbon steel for better weldability performance and can help save space while meeting your need to place multiple devices.
- User-friendly Design: Ergonomic design makes the open frame av rack easier to use. The additional top panel is able to place other items with more available space. Roller design moves anywhere and anytime, is convenient, and is more energy-saving.
- Complete Accessories: We provide the accessories you need, including 2 x Pallets, 145 x M5*10 Cross Head Screws, 4 x Casters, 4 x M10*50 Expansion Screws,10 x M6*12 Cage Nuts, 1 x Grounding Wire, 1 x User Manual.
- Wide Application: The server rack wall mount maximizes the use of available space, suitable for retail venues, classrooms, offices, and other places where space is limited.
How to organize the infrastructure implementation
- Pin and validate the provider. Choose a provider version, then confirm its current resource documentation and supported arguments for each AWS service component you plan to manage.
- Define the data path first. Decide which S3 content is in scope, which embedding model the Knowledge Base will use, and how the vector index fields will map to the Knowledge Base configuration.
- Establish the collection controls. Design the OpenSearch Serverless encryption, network, and data access policies as separate controls. Decide whether the collection is private before writing its network policy.
- Grant the Bedrock service role only the access it needs. Its trust relationship must permit Bedrock to assume the role. Its permissions must cover the selected embedding model, S3 data source, and vector store.
- Validate policy alignment before ingestion. Check the role’s identity-based permissions, the OpenSearch Serverless data access policy, and the resource ARNs together. The OpenSearch data access policy must grant the service role the required index access.
- Deploy, ingest, and verify. Confirm that the Knowledge Base can access its source and vector store, then verify that the expected content is available for retrieval before connecting an application.
- Remove temporary resources when finished. For experiments, clean up the collection and its associated policies when they are no longer needed.
How to scope the Knowledge Base service role
There are two distinct permission relationships to get right. First, the role’s trust policy lets the Bedrock service assume the role. Second, permissions attached to the role let it perform the operations required for the selected embedding model, S3 data source, and vector store. An overly broad trust or permission policy is not a substitute for a correctly scoped one.
OpenSearch Serverless adds a separate data-access-policy requirement: grant the Bedrock service role the necessary access to the relevant index. Align that policy with the index and resource ARNs used in the Knowledge Base setup. A role can have identity-based permissions and still lack the collection’s required data access if the OpenSearch policy does not grant it.
Rank #2
- ADJUSTABLE DEPTH: 4-Post 25U open frame server rack with 4 vertical rails and adjustable mounting depth 22" to 40" (56,0cm to 101,7cm); Compatible with various servers / switches / data / AV and other IT equipment; EIA/ECA-310-E Compliant
- EASY ASSEMBLY: Mobile network rack with easy-to-follow assembly instructions and online video; Compact flat-pack shipping to avoid damage and facilitate installation; Total product height of 50.8in (129cm) with casters, 48in (122cm) without casters
- COLD ROLLED STEEL: Durable 4 Post 19in open frame rack designed for ventilation with 25U mounting height and 1200lb (544kg) weight capacity (stationary); 3 install options included: casters, levelling feet, or base-plate to secure rack to the floor
- HARDWARE INCLUDED: Rolling computer/data rack includes cage nuts and screws to mount equipment, easy to read Units (U) and depth adjustment markings, cable management hooks for organization, and required assembly tools
- THE IT PRO'S CHOICE: Designed and built for IT Professionals, this 25U rack is backed for 2-years, including free lifetime 24/5 multi-lingual technical assistance
Choose public or private collection access deliberately
For a private OpenSearch Serverless collection, AWS documents access through a PrivateLink VPC endpoint and a network policy that permits Bedrock as a source service. That is a separate concern from the role’s permissions and the collection’s data access policy.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware match- Network policy: determines permitted network paths to the collection.
- Encryption policy: controls encryption for the collection.
- Data access policy: grants the role the required collection or index operations.
An AWS tutorial demonstrates a public network policy in its example. That example should not be treated as a production default; choose a posture that matches your deployment’s access requirements.
Rank #3
- Adjustable Depth: Depth adjustable from 23" to 40", this open frame server rack accommodates servers and network equipment while providing ample space for A/V gears and cable management. Enjoy easy access to ports and devices from multiple angles.
- High Weight Capacity: Supports up to 300 lbs on the floor (200 lbs when adjusted to maximum depth) and 200 lbs when wall-mounted (depth cannot be adjusted in wall-mounted mode). Made from carbon steel for superior welding performance and durability, this open frame rack is designed to save space while accommodating multiple devices.
- User-Friendly Design: Designed with your convenience in mind, this open frame server rack features an top shelf for extra storage and improved space utilization. The rolling casters let you move it effortlessly wherever you need it, making setup and movement a breeze.
- Widely Applicable: Maximize your space with this adaptable open frame server rack, designed to make the most of every inch. Ideal for retail spots, classrooms, offices, and any area where space is at a premium, it delivers practical solutions for your storage needs.
- Everything You Need: Our open-frame rack comes with fully equipped accessory kit for easy setup and secure installation: 2 x Trays, 4 x Casters, 1 x set of Screws, 16 x M6*12 Cage Nuts, 1 x Grounding Wire, 1 x Internal & External Hex Wrenches, and 1 x User Manual.
Plan for collection lifecycle costs
AWS’s OpenSearch Serverless and Knowledge Bases tutorial notes that idle collections accrue OCU-hour charges. The amount depends on current pricing in the deployment Region and the workload; no price figure is established here. Check current regional pricing before deploying, and remove temporary collections and policies after testing to avoid leaving unused resources running.
Quick Recap
Best Value
- Performance-Oriented and Quiet Hardware Design: 32GB ECC RAM | 8-Core 2.2GHz Intel Atom CPU | 12x 3.5” Hot-Swap SATA Drive Bays | 2x RJ45 10Gigabit Ethernet LAN ports | Remote Management (IPMI) | 2x USB 2.0 Ports - 1x USB 3.0 Port | 1x Internal Boot Device | Built-in RAID | Boost performance by adding SSDs for read and write caching.
- Ideal for file-sharing, backup, multimedia processing, transcoding, and distribution, video surveillance, edge/remote office, development, personal cloud, and other small/home office & SMB applications. Broaden your Mini’s capabilities with VMs and an extensive suite of software plugins.
- TrueNAS software supports Windows, MacOS, Linux, and Unix clients and syncs with AWS, Azure, Dropbox and more. Supports NFS, SMB, AFP, iSCSI and S3 file sharing protocols. Use TrueCommand to manage multiple TrueNAS systems from a single interface.
- Includes Short Rail Kit - 19" to 26.6" rackmount depth for short racks and optional rubber feet for desktop.
- Item Weight: 41.7 lbs
Rank #4
- 22U Universal 19 inch equipment Rack Cabinet with Locking Wheels for AV, Networking, Computer Server, Home Theater Rack-mountable Gear.
- Compatible with American 5mm and European 6mm rack mount standards. Screws packs for both are included.
- Open Front and Back, 22U Rack Spacing Design with Protective-Vented Side Panels. Front and Real Rail Rack. No Door. Textured-Matte Black Finish. Holds AV/Networking Equipment up to 18-inches Deep.
- Front locking 3" Caster Wheels move easily on carpet. 1U Blank Panel is included. Dimensions Assembled: 18” x 20” x43” with wheels. Weight Capacity is 440lbs with wheels and 550lbs without wheels.
- This Standard 19" 22U Rack is Ideal for businesses, DJs, Sound Studios,home theaters with needs to organize Server/Network Equipment, Power Amplifiers, Microphones, DVD Players, Electronics etc. Compatible with ALL AxcessAbles rack drawers, shelves, rack accessories as well as all standard 19" rack accessories in the marketplace.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

