Indice dei contenuti
ToggleArticle by Nicola Boscaro – Forward Deployed Engineer at AzzurroDigitale
Amazon S3 is much more than a hard drive in the cloud: it is the backbone of data lakes and backups, it serves frontends without servers, triggers automations with Lambda and keeps costs under control with lifecycle policies. In this last episode of our AWS Series we also look at S3 Vectors, the service for storing and querying embeddings directly inside S3.

In the previous episode we saw how Bedrock lets you build artificial intelligence applications without training models, and we left off with Knowledge Bases: documents split into chunks, turned into embeddings and stored in a vector database. One question remained: where, physically, does all this data live? The PDFs you start from, the vectors that come out of them, logs, backups, images uploaded by users.
The answer, almost always, is Amazon S3. It is one of the oldest AWS services and also one of the most underrated: people think of it as “the place where you dump files”, but it is the piece that most of the services we have seen so far rely on. In this last episode of the series we look at what S3 can do beyond storage, and we close with S3 Vectors, the new service that brings similarity search inside S3 and closes the loop on RAG.
Business case: why S3 is everywhere
From the point of view of someone using an application, S3 is never visible. But it is almost always there:
- Attachments and documents: photos uploaded by an operator on the shop floor, the PDFs of a quote, the technical manuals of a machine.
- Backups and exports: the RDS snapshots we talked about in the database episode end up on S3, even though AWS hides it from us.
- Websites and frontends: a single page application (React, Angular, Vue) is a set of static files, and S3 can serve them without a running server.
- Data for analytics and AI: logs, production data, sensor readings, documents to index for a RAG-based assistant.
The reason it pays off is simple: you pay for what you store and for the requests you make, not for running servers. There is no disk to size, no storage limit to keep an eye on, and the stated durability is 99.999999999% (the “eleven nines”): in practice, files do not get lost.
How it works: buckets, objects and keys
The S3 model is simpler than a file system, and that is exactly why it scales so well. Three concepts are enough:
- Bucket: the main container, with a unique name and an AWS region where the data lives (for us typically
eu-south-1, Milan, oreu-central-1, Frankfurt). - Object: the actual file, plus its metadata (content type, tags, creation date). A single object can be up to 5 TB.
- Key: the “path” of the object, for example
clienti/acme/offerte/2026/offerta-42.pdf. The folders you see in the console are just a visual convenience: in reality S3 is one big key → object dictionary.
Everything is accessed via HTTP APIs (or through SDKs and the CLI), with permissions managed by IAM, the same system we saw for EC2, ECR and Bedrock. Buckets are private by default and automatically encrypted: to make something public you have to ask for it explicitly, and it is best to do so as little as possible. To share a file with someone without opening up the bucket you use presigned URLs, temporary links that expire after a time you choose.
Beyond storage: four uses that make a difference
1. The backbone of a data lake
A data lake is a single place to collect heterogeneous data (CSV, JSON, logs, exports from management systems, machine data) without first having to turn it into tables. S3 is the natural choice because it is cheap, grows without limits and almost every AWS analytics tool reads it directly: Athena lets you run SQL queries on files in S3 without loading them into a database, Glue catalogs and transforms the data, and columnar formats like Parquet or Apache Iceberg tables make queries fast and cheap.
2. Static hosting
A compiled frontend is made of HTML, JavaScript, CSS and images. Putting them on S3 and serving them through CloudFront, the AWS CDN, means having a fast website worldwide, with HTTPS and a managed certificate, without any server to patch. The bucket stays private: it is CloudFront that has permission to read it.
3. Events that trigger code
S3 can send a notification when something happens to an object: uploaded, deleted, restored. The notification can directly trigger a Lambda function, or go through queues and event buses (SQS, SNS, EventBridge). It is the simplest way to build automated pipelines: an operator uploads a photo and thumbnail generation starts; a PDF lands in the manuali/ folder and indexing for the AI assistant kicks off. No process checking every five minutes whether something new has arrived.
4. Lifecycle policies and storage classes: where you really save
Not all data is worth the same over time. A document uploaded yesterday gets opened often, a two-year-old log probably never. S3 offers several storage classes, with decreasing storage costs in exchange for higher read costs or longer retrieval times:
| Storage class | When to use it |
|---|---|
| S3 Standard | Frequently used data: recent attachments, frontend assets |
| S3 Intelligent-Tiering | You do not know how the data will be used: S3 automatically moves objects between tiers based on access |
| S3 Standard-IA / One Zone-IA | Rarely read data that must be available immediately (IA = Infrequent Access) |
| S3 Glacier Instant Retrieval | Archive consulted a few times a year, read in milliseconds |
| S3 Glacier Flexible Retrieval / Deep Archive | Long-term archives, retention obligations: retrieval takes from minutes to hours |
Lifecycle policies automate the moves: “after 30 days move to Standard-IA, after one year to Glacier, after ten years delete”. You configure them once and they work on their own. The same mechanism is also used for cleanup: deleting old object versions, multipart uploads left half-finished, temporary files. It is these small things, more than the price per GB, that make the S3 bill grow without anyone noticing.
Practical tip on costs: besides the space used, you pay for requests (PUT, GET, LIST) and for outbound traffic to the Internet. An application that makes thousands of LIST requests per minute or serves heavy files without a CDN can cost more in requests than in storage. S3 Storage Lens and Cost Explorer reports help you understand where the money goes.
S3 Vectors: the vector database that is not a database
Let’s go back to where we started. In the Bedrock episode we saw that RAG needs a place to store embeddings, and in the RDS one that PostgreSQL with pgvector can do this job. So why did AWS create yet another service?
Because classic vector databases are designed to answer many requests per second in a few milliseconds, and to do so they keep indexes in memory on always-on machines. That is perfect for a search users run constantly, but it becomes expensive when there are huge numbers of vectors that are rarely queried: a company’s document archive, years of support tickets, an AI agent’s long-term memory. You mostly pay to keep the infrastructure running, not to use it.
Amazon S3 Vectors, generally available since December 2, 2025, turns this reasoning around: vectors live in S3, with the same durability and elasticity as object storage, and you pay for how much you store and for the queries you actually run. No cluster to size, no fixed cost when nobody queries the index. AWS states a cost reduction of up to 90% compared to traditional solutions, in exchange for higher latency: around 100 milliseconds for queries on “warm” indexes, and still under one second in other cases.
How it’s built

- Vector bucket: a new type of bucket, separate from traditional ones, designed specifically for vectors.
- Vector index: inside the bucket, the index you search against. You choose the vector dimension once (up to 4,096, it must match that of the embedding model) and the distance metric (cosine or Euclidean). An index can hold up to 2 billion vectors, and a bucket up to 10,000 indexes.
- Vectors with metadata: each vector has a key, the embedding numbers and metadata. Filterable metadata is used to narrow the search (“only customer X’s documents”, “only line 3 manuals”); non-filterable metadata carries along useful information, such as the original text of the chunk.
What it connects to
The most interesting part is that S3 Vectors can be used without writing a single line of vector code:
- Bedrock Knowledge Bases: when you create a knowledge base you can choose S3 Vectors as the vector store. Bedrock reads the documents, splits them, computes the embeddings and saves them in the index. It is probably the cheapest way to set up RAG on AWS.
- OpenSearch: S3 Vectors can act as a low-cost storage layer, and when part of the data needs high-frequency, ultra-low-latency searches it can be moved to OpenSearch. A low-cost “cold” tier and a “hot” one for the most demanding queries.
Deep tech: S3 Vectors or pgvector, which to choose
| S3 Vectors | pgvector (RDS/Aurora) | |
|---|---|---|
| Model | Object storage with vector search | PostgreSQL extension |
| Latency | ~100 ms – under one second | Milliseconds, depends on instance and index |
| Cost | Pay-per-use, no fixed cost | Always-on instance |
| Key strength | Huge volumes at low cost, zero management | Vectors and relational data in the same SQL query |
| When to choose it | RAG on document archives, agent memory, occasional workloads | You already have Postgres and medium volumes |
The rule of thumb: if you already have PostgreSQL and a few million vectors, pgvector saves you an extra service. If there are many vectors, they grow over time and are queried on demand (typical of an assistant on technical documentation or an agent consulting its own memory), S3 Vectors is hard to beat on cost.
Conclusion
To sum up: S3 is much more than a disk in the cloud. It is the foundation of data lakes and backups, it serves frontends without servers, triggers automations when a file arrives and, with lifecycle policies, keeps costs under control almost by itself. With S3 Vectors it also adds search by meaning, at a fraction of the cost of a traditional vector database, at the price of a few tens of milliseconds of extra wait.
This episode wraps up our AWS Series. We started with EC2, on-demand compute; we moved on to RDS, managed databases; we built AI applications with Bedrock; and we close with S3, the place where all of this ends up storing its data. These are the building blocks we use, every day, to build AzzurroDigitale’s products.

Do you have an archive of documents, manuals or tickets you would like to make searchable by an AI assistant? Get in touch! We would be happy to talk about it.