<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matthew Sweeney on Medium]]></title>
        <description><![CDATA[Stories by Matthew Sweeney on Medium]]></description>
        <link>https://medium.com/@matthew.sweeney001?source=rss-139fcabe8972------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mg9v4Z_KeoszxXzv</url>
            <title>Stories by Matthew Sweeney on Medium</title>
            <link>https://medium.com/@matthew.sweeney001?source=rss-139fcabe8972------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:24:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@matthew.sweeney001/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Object Store to Data Platform: How Amazon S3 Is Evolving with Tables, Vectors, Files…]]></title>
            <link>https://medium.com/@matthew.sweeney001/from-object-store-to-data-platform-how-amazon-s3-is-evolving-with-tables-vectors-files-d140ca4e9404?source=rss-139fcabe8972------2</link>
            <guid isPermaLink="false">https://medium.com/p/d140ca4e9404</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[cloud-architecture]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Matthew Sweeney]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 05:42:04 GMT</pubDate>
            <atom:updated>2026-06-23T13:22:58.568Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>From Object Store to Data Platform: How Amazon S3 Is Evolving with Tables, Vectors, Files, Annotations, and </em></strong>Metadata</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SOTCm5Xi8W86aRytUoa-ZQ.png" /><figcaption>Amazon S3 is evolving from object storage into a broader data platform for tables, vectors, files, annotations, and metadata.</figcaption></figure><p>Since its launch in 2006, Amazon S3 has become the de facto standard for cloud object storage, serving everyone from individual developers and startups to Fortune 500 enterprises.</p><p>For much of its history, Amazon S3 had a straightforward responsibility: durably store objects and make them available at virtually unlimited scale.</p><p>Over the past few years, AWS has quietly begun expanding that role. Viewed together, S3 Tables, S3 Vectors, S3 Files, S3 Annotations, and S3 Metadata reveal a larger trend: Amazon S3 is increasingly being positioned not only as an object store, but as a broader data platform capable of storing, organizing, enriching, discovering, and accessing data through a growing set of native capabilities.</p><p>Among these capabilities, S3 Annotations may be one of the most interesting. While tables, vectors, and file-system interfaces change how data is stored and accessed, annotations introduce a way to attach rich, evolving knowledge directly to the objects themselves. When combined with S3 Metadata, that knowledge becomes discoverable and queryable at scale.</p><p>In this article, we’ll explore how each of these capabilities works, the problems they are designed to solve, where they fit within the architecture, and what they reveal about Amazon S3’s future direction.</p><h4>Amazon S3: The Foundation of the Cloud</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHz-mHermMMavkiIe99NEw.png" /><figcaption>Amazon S3 remains the foundational storage layer for cloud-native applications, analytics platforms, AI systems, and data lakes.</figcaption></figure><p>At its core, Amazon S3 is deceptively simple. Data is stored as objects within buckets and accessed through a small set of APIs that have remained largely consistent for nearly two decades.</p><p>By combining a simple programming model with highly durable, low-cost storage at virtually unlimited scale, Amazon S3 has become a foundational component of modern cloud architectures. As cloud adoption has accelerated, an increasing share of organizational data has moved into S3, establishing it as the foundation for analytics platforms, data lakes, machine learning systems, content delivery networks, observability platforms, and countless business applications.</p><p>Beyond storage, S3 has also become a critical event source within cloud-native architectures. Object-level events can trigger downstream processing through services such as AWS Lambda, Amazon EventBridge, Amazon SQS, and Amazon SNS. This enables patterns ranging from image and video processing pipelines to data lake ingestion, machine learning workflows, compliance automation, and real-time application integrations. In many architectures, S3 has evolved from a passive storage service into an active component of distributed systems.</p><p>As more systems store and process data in S3, an important reality becomes clear: while the data itself lives in S3, the capabilities required to manage, query, search, govern, and enrich it often remain fragmented across catalogs, metadata stores, indexes, databases, and processing pipelines. That complexity becomes particularly apparent in enterprise-scale analytics, machine learning, compliance, and governance workflows.</p><p>S3 Tables, S3 Metadata, S3 Vectors, S3 Files, and S3 Annotations do not entirely replace those surrounding systems. They bring selected capabilities closer to data already stored in S3, reducing some of the surrounding infrastructure that teams have traditionally had to assemble themselves.</p><p>To understand why AWS built these capabilities, how they can be used, and what they reveal about the future of S3, it is worth examining each one in detail.</p><h4><strong>S3 Tables: Bringing Structured Data to S3</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r2opQivM_HmDZku9QkJpDw.png" /><figcaption>S3 Tables brings managed Apache Iceberg table semantics directly into Amazon S3.</figcaption></figure><p>Historically, analytical datasets in S3 were often managed as collections of Parquet files organized into directory structures that represented partitions and tables. The data lived in S3, but the table metadata, including schemas, partitions, and structure, usually had to be managed somewhere else.</p><p>Query engines depended on both the files in S3 and external metadata catalogs to understand those datasets as tables. In AWS environments, that commonly meant coordinating services such as the AWS Glue Data Catalog, Glue Crawlers, Athena, EMR, and Apache Spark to discover datasets, manage schemas, and maintain partitions over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5gqaekaQmByFjEg22PqWA.gif" /><figcaption>Traditional S3-based data lakes often rely on crawlers, catalogs, and query engines to interpret raw files as analytical tables.</figcaption></figure><p>As datasets grow, operations such as schema evolution, partition management, concurrent writes, and maintaining a consistent view of table state become increasingly difficult. Managing analytical datasets often requires coordinating multiple services, metadata catalogs, and processing frameworks, creating operational complexity that increases alongside data volume.</p><p>These challenges are not unique to AWS. Across the broader data lake ecosystem, organizations have struggled to manage large analytical datasets stored on object storage while maintaining reliable table semantics, transactional consistency, and efficient metadata management. Apache Iceberg emerged as one of the most widely adopted solutions to these problems.</p><p>Iceberg is an open table format that adds a transactional metadata layer on top of the data files stored in object storage.</p><p>Instead of treating a dataset as a folder full of Parquet files, Iceberg keeps track of the table as a table. It records the schema, partitions, snapshots, and transaction history so query engines can understand the dataset consistently.</p><p>This makes features such as schema evolution, ACID transactions, and time travel possible without giving up the scale and cost advantages of object storage. In practice, Iceberg helps analytical datasets behave more like database tables while still storing the actual data as files in S3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W04XBcDSeYOgxTgbSN9xsg.png" /><figcaption>Apache Iceberg adds transactional table metadata on top of object storage, enabling snapshots, schema evolution, partition management, and time travel.</figcaption></figure><p>It is important to know that Iceberg does not replace Parquet. Parquet still stores the actual data, while Iceberg adds the table structure on top of it. That structure helps manage schemas, partitions, snapshots, and transactions, but running Iceberg at scale can still require coordination across storage, catalogs, query engines, processing frameworks, and maintenance jobs.</p><p>S3 Tables simplifies this architecture by moving much of the operational responsibility for managing Iceberg tables into S3 itself. Unlike traditional S3 buckets that store arbitrary objects, S3 Tables introduces table buckets, a storage construct purpose-built for analytical table workloads. Customers create Iceberg tables directly within these table buckets, while AWS automatically manages much of the infrastructure traditionally required to operate them.</p><p>S3 Tables maintains Iceberg table data and metadata, manages snapshots, optimizes file layouts, and performs table-maintenance tasks such as compaction and unreferenced file cleanup. These are the kinds of operational tasks teams often have to manage themselves when running Iceberg tables across standard S3 buckets, catalogs, and processing frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EiNxN6cKPmty8Gcmq1FNdQ.gif" /><figcaption>S3 Tables moves Iceberg table management closer to the storage layer by allowing AWS to maintain table metadata and optimization workflows.</figcaption></figure><p>The primary value of S3 Tables is not a new table format; the underlying format remains Apache Iceberg. It is a managed operational model in which table schemas, partitions, snapshots, optimization metadata, and maintenance become part of the table lifecycle. AWS Glue Data Catalog integration allows AWS analytics services such as Athena, Redshift, EMR, Glue, and Spark-compatible Iceberg clients to discover and access S3 Tables.</p><p>S3 Tables does not replace analytics engines, catalogs, or processing frameworks. Athena still executes queries. Spark still performs distributed data processing. Redshift can still analyze the data. Instead, S3 Tables provides a managed storage layer that simplifies how those services interact with Iceberg tables stored in S3.</p><p>S3 Tables addresses one of the most common requirements in modern data architectures: large-scale structured analytics. But today’s applications often need more than SQL queries against rows and columns. They increasingly rely on semantic search, retrieval-augmented generation (RAG), recommendation systems, and other AI workloads that operate on unstructured content.</p><p>This is where S3 Vectors enters the picture.</p><h4><strong>S3 Vectors: Bringing Semantic Search to S3</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcGDBclW6AaLv1i7Mig7Hw.png" /><figcaption>S3 Vectors brings managed vector storage and similarity search closer to the data already stored in Amazon S3.</figcaption></figure><p>Modern AI applications increasingly rely on vector search to retrieve semantically relevant content from large collections of unstructured data. Until recently, implementing this pattern usually meant generating embeddings with a model such as Amazon Titan Embeddings and storing those vectors in a dedicated vector database or search platform.</p><p>S3 Vectors simplifies this architecture by providing managed vector storage and similarity search directly within S3. Document ingestion, chunking, embedding generation, and metadata-schema design remain the customer’s responsibility, whether the source data consists of PDFs, images, transcripts, or application data. S3 Vectors focuses on vector storage and retrieval while allowing customers to choose the models, tooling, and preprocessing strategies that fit their workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1X-Yr674C6FySsObi1Iog.gif" /><figcaption>S3 Vectors stores embeddings and metadata while applications remain responsible for chunking, embedding generation, and retrieval orchestration.</figcaption></figure><p>In addition to similarity search, S3 Vectors supports metadata filtering, allowing applications to restrict searches using structured attributes such as tenant identifiers, document types, classifications, dates, or application-specific metadata. Applications can also perform direct retrieval using vector keys when the exact vector identifier is already known.</p><p>The primary value of S3 Vectors is not in its unique search capability. Similarity search, metadata filtering, and vector retrieval are common features across modern vector databases. The differentiator is its operational and economic model.</p><p>Traditional vector platforms often require dedicated infrastructure, whether that infrastructure consists of managed vector database clusters such as Pinecone, Weaviate, Milvus, Qdrant, and OpenSearch, or lighter-weight alternatives such as pgvector running in PostgreSQL or sqlite-vec embedded within an application. While these approaches can be highly effective, customers remain responsible for managing the underlying storage and operational lifecycle.</p><p>S3 Vectors takes a different approach. Customers primarily pay for vector storage, writes, and queries. There are no vector database clusters to provision, scale, patch, monitor, or keep running during periods of low activity. For organizations already storing large volumes of content in S3, this reduces both the operational complexity and cost of adding semantic retrieval.</p><p>For many retrieval-augmented generation and semantic search workloads, S3 Vectors may be sufficient on their own. Organizations requiring ultra-low-latency retrieval, highly specialized indexing strategies, or advanced vector database capabilities may still prefer dedicated platforms. However, for teams already invested in S3, S3 Vectors dramatically lowers the barrier to implementing semantic search at scale.</p><h4>S3 Files: Bringing Native File Access to S3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iat3CtJGU4DdLavsJ6HGNg.png" /><figcaption>S3 Files allows applications that expect file systems to access S3-backed data through POSIX-compatible interfaces.</figcaption></figure><p>Amazon S3 was originally designed around a simple object storage model. Applications interact with data using APIs such as GetObject, PutObject, ListObjects, and DeleteObject. This model has proven incredibly successful for cloud-native applications, enabling virtually unlimited scalability, high durability, and low-cost storage.</p><p>However, many applications, frameworks, and tools are designed around traditional file systems rather than object storage APIs. Instead of interacting with objects, they expect familiar POSIX operations such as:</p><pre>open()    // Open a file for access<br>read()    // Read bytes from a file<br>write()   // Write bytes to a file<br>rename()  // Rename or relocate a file<br>mkdir()   // Create a new directory<br>readdir() // Enumerate files in a directory</pre><p>These file-system assumptions are everywhere. They appear in analytics platforms, media processing pipelines, scientific computing workloads, machine learning frameworks, developer tools, command-line utilities, and legacy enterprise applications.</p><p>Organizations that require native file system operations on AWS have typically relied on services such as Amazon EFS, Amazon FSx, or S3 File Gateway.</p><p>S3 Files introduces a different approach.</p><p>Rather than requiring customers to operate a separate file system as the primary storage layer, S3 Files provides a POSIX-compatible layer that presents S3 objects as files and directories. Applications connect through mount targets deployed within a selected VPC, using private IP addresses for standard file operations while the underlying data continues to reside in S3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IEp81bxVy8QOV3a61zApg.gif" /><figcaption>Separate S3 Files file systems can be created in different VPCs while sharing the same underlying data stored in Amazon S3.</figcaption></figure><p>One particularly interesting aspect of S3 Files is how it differs architecturally from traditional managed file systems. With Amazon EFS, the file system itself is the primary storage layer. With S3 Files, the authoritative data remains in Amazon S3, while file system access is mounted on a bucket or a prefix. That means organizations can create separate S3 File Systems backed by the same S3 bucket, or by different prefixes within the same bucket, and expose those file systems in different VPCs. Each S3 Files file system remains scoped to a single VPC, but the underlying dataset can remain centralized in S3 rather than being locked within a single file-system deployment.</p><p>This creates a more flexible architecture for organizations operating multiple environments, accounts, or application stacks. Instead of treating the file system as the only copy of the data, teams can create file-system views over data that continues to reside in S3, the shared system of record.</p><p>The storage model is also fundamentally different.</p><p>With EFS, file data is stored directly within the file system, and customers pay for the storage consumed within EFS itself. S3 Files stores data in Amazon S3 and uses a managed, high-performance storage layer to provide file-system semantics and low-latency access to active data. Because data not read within a configurable window can expire from the high-performance storage layer, storage consumption can shrink as access patterns change. File modifications are ultimately synchronized back to S3, while the high-performance storage layer accelerates access and provides the file-system semantics expected by applications.</p><p>This distinction can have meaningful cost implications. Organizations continue to benefit from S3’s storage economics while only maintaining cached file data when it is actively needed. As cached content expires, storage costs associated with the cache layer can decrease automatically. Traditional file systems generally retain all stored data until it is explicitly deleted.</p><p>Operationally, S3 Files also aligns file access with the same storage platform many organizations already use as their system of record. Since the underlying data resides in S3, organizations inherit the durability, lifecycle management, and data protection capabilities that have made S3 the foundation of modern data lakes. By comparison, EFS deployments commonly rely on separate backup and recovery strategies when long-term retention or disaster recovery requirements exist.</p><p>The ability to combine POSIX compatibility with native S3 storage opens the door to a variety of workloads.</p><p>Machine learning pipelines frequently exchange datasets, embeddings, model checkpoints, and intermediate artifacts through shared storage. Analytics workloads often rely on frameworks that expect hierarchical file structures. Media processing systems routinely generate large collections of files throughout transcoding, rendering, and content transformation workflows.</p><p>In many ways, S3 Files is less about creating a new storage service and more about making S3 accessible to software that is not designed to speak object storage APIs.</p><p>It also does not replace direct S3 API access. Applications designed around object storage can continue using native S3 operations, including frontend clients that access S3 with temporary credentials. At the same time, backend services, legacy tools, or processing frameworks can access the same underlying data through familiar file-system operations. This allows the same dataset to support both object-native and file-native workflows, depending on what each part of the application expects.</p><p>That flexibility introduces an important tradeoff. Once the same data can be accessed through both object APIs and file-system operations, performance depends heavily on the access pattern. Direct S3 API access may be the simplest and most efficient path for object-native applications, while S3 Files may be more useful when software expects directories, paths, and standard file operations.</p><p>To better understand that tradeoff, I performed a simple benchmark comparing native S3 SDK access through an S3 Gateway Endpoint with S3 Files, using the same dataset. Because my application uses LangGraph and the surrounding ecosystem supports both Python and TypeScript workflows, I tested both client implementations. This was not meant to be a universal language benchmark. It was a practical comparison of the access patterns I would realistically use in an AI application.</p><p>The benchmark consisted of downloading approximately 1 GB of data distributed across 10,000 files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YvUgBIMU18-1_DLD7FTJoQ.png" /><figcaption>A benchmark comparing native S3 SDK downloads with S3 Files shows how access pattern and cache state can significantly affect performance.</figcaption></figure><p>The results illustrate an important point: S3 Files should not be viewed solely as a compatibility layer. Performance characteristics depend not only on whether data is accessed through object APIs or file-system operations, but also on implementation details such as buffering, concurrency, runtime behavior, and cache state. Initial access may incur cache population costs, but once data becomes warm within the managed cache layer, S3 Files can perform very well for workloads that repeatedly access the same data through file-system interfaces. In my benchmark, the Python implementation outperformed the TypeScript implementation, while warm-cache S3 Files completed the workload substantially faster than my SDK-based direct S3 implementation for the same dataset.</p><p>That solves access, not context. Even when data can be stored, organized, searched, and accessed efficiently, organizations still need a way to attach additional knowledge without constantly rewriting the underlying objects.</p><h4>S3 Annotations: Bringing Rich Context to S3 Objects</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFZuk-2rB9v66GK2oXU35A.png" /><figcaption>S3 Annotations allows rich, evolving knowledge to be attached directly to objects without rewriting the underlying files.</figcaption></figure><p>Organizations that want to attach searchable or mutable information to S3 objects have typically stored it elsewhere, often in DynamoDB, Amazon RDS, PostgreSQL, OpenSearch, or another application database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Xip1v__Xwm00O7ApTj9tBA.gif" /><figcaption>Without native annotations, applications often store object metadata in separate databases or indexes that must be synchronized with S3.</figcaption></figure><p>This approach works, but it makes applications responsible for maintaining the relationship between each object and its metadata. Pipelines must update multiple systems, applications require additional lookups to retrieve context, and the metadata can become fragmented across supporting infrastructure.</p><p>S3 Annotations introduces a different model.</p><p>Rather than storing supplemental information in a separate system, annotations allow customers to attach rich, structured information directly to objects stored in Amazon S3. This information remains associated with the object while being managed independently from the object’s contents.</p><p>That makes annotations feel less like a sidecar database and more like a built-in metadata store for S3 objects. Applications can create, retrieve, list, update, and delete annotations through dedicated S3 API operations, including the AWS CLI and SDKs, without rewriting the object itself. For a specific object, an application can retrieve its annotations directly at any time. When S3 Metadata annotation tables are enabled, those annotations can also be queried at scale through analytics tools such as Athena.</p><p>An annotation is a separate piece of information attached to a specific version of an object. Each object version can have up to 1,000 annotations, with each annotation supporting UTF-8 text payloads up to 1 MiB. Those payloads can contain JSON, XML, YAML, Markdown, plain text, or SVG, making annotations useful for everything from structured metadata and compliance findings to human-readable summaries and lightweight visual context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kw8EDue3mAZ1sP5fxU92PQ.gif" /><figcaption>Annotations attach structured knowledge, such as summaries, classifications, and compliance findings, directly to specific S3 object versions.</figcaption></figure><p>This is different from object tags. Tags remain the right tool when metadata needs to participate in IAM policies, lifecycle rules, cost allocation, or other operational controls. Annotations are better suited for larger, richer application-level payloads that do not fit naturally into small key-value tags, such as AI summaries, extracted entities, compliance findings, workflow results, or document intelligence.</p><p>Examples include identifying a document as a lease agreement, storing the output of a sentiment analysis model, attaching a compliance classification, or recording an AI-generated summary.</p><p>This seemingly small capability unlocks several interesting workflows.</p><p>In many organizations, AI enrichment pipelines eventually generate more information about a document than the document originally contained. A contract uploaded to S3 might accumulate OCR output, classifications, extracted entities, summaries, compliance findings, renewal dates, risk assessments, and workflow results. That derived knowledge can remain associated with the object it describes rather than being scattered across databases, search indexes, and application-specific metadata stores.</p><p>The same pattern applies to media workflows. A video file might accumulate transcription results, scene-detection information, facial-recognition metadata, quality measurements, and compliance-review findings over time. Rather than storing these outputs in separate databases, annotations allow them to remain directly associated with the content they describe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYow0Da3oOgRX5133WLyYA.gif" /><figcaption>AI enrichment workflows can analyze uploaded documents and attach each generated insight as an annotation on the original S3 object.</figcaption></figure><p>Like many AWS features, however, the most interesting details emerge once you move beyond the marketing overview.</p><p>One of the first operational considerations is versioning.</p><p>Annotations belong to object versions, not object keys. If versioning is enabled and a new version of an object is uploaded, annotations attached to the previous version are not automatically carried over. A newly uploaded version starts with its own annotation set. Teams expecting annotations to follow an object’s name rather than its version may find this behavior surprising at first, particularly when enrichment pipelines depend on previously generated annotations.</p><p>There is a second subtle point here: annotations themselves are not independently versioned. Updating an annotation with the same name replaces the previous annotation value rather than creating an annotation history. Deleting an annotation is also permanent, even when the parent object lives in a versioned bucket. For teams using annotations to store AI-generated summaries, compliance findings, or audit-related enrichment, that behavior matters. If the historical annotation state needs to be preserved, it has to be modeled intentionally rather than assumed from S3 Versioning alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9UnwDF2nqvLiP4PRltIhw.gif" /><figcaption>Annotations are tied to object versions, so new versions do not automatically inherit annotations from earlier ones.</figcaption></figure><p>Copy behavior is another detail worth designing around. For standard CopyObject operations, annotations are copied with the object by default unless explicitly excluded. Multipart copy behaves differently: when large objects are copied in parts, annotations are not automatically preserved unless the copy operation is explicitly configured to include them. During large-scale migration, replication, or reprocessing workflows, teams should verify whether annotations are intentionally preserved, excluded, or regenerated.</p><p>Storage costs are another consideration. Because annotations are stored separately from the underlying object, they are billed separately as well. More importantly, annotation storage is billed at S3 Standard rates regardless of the parent object’s storage class. That means moving an object into Standard-IA, Glacier Instant Retrieval, Glacier Flexible Retrieval, or Glacier Deep Archive does not move its annotations into those lower-cost storage classes. For most workloads, this will not be significant. Still, organizations performing large-scale AI enrichment should understand the cost model. If archived objects accumulate numerous large annotations, the annotation footprint may eventually exceed the storage cost of the underlying object.</p><p>There are also compatibility limitations. Not every S3 storage construct currently supports annotations. Features such as directory buckets and S3 Files have support limitations that organizations should evaluate before building workflows that depend on annotations. As with many of S3’s newer capabilities, support for this feature continues to evolve as the platform matures.</p><p>For architects, the opportunity and the warning are inseparable: AI systems, compliance workflows, governance platforms, and media pipelines can enrich content without rewriting the source object, but versioning, deletion, cost, and compatibility semantics must be explicitly designed.</p><h4>S3 Metadata: Accelerating Data Discovery</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8p243-_TeSmxvqOvhsCQVw.png" /><figcaption>S3 Metadata makes objects, changes, and attached annotations discoverable through managed metadata tables.</figcaption></figure><p>While S3 Tables, S3 Vectors, S3 Files, and S3 Annotations each expand what can be built on top of Amazon S3, they also create a new discovery problem. Once objects can become tables, vectors, file-system views, and annotation-backed assets, organizations need a way to understand what exists, what changed, and what knowledge has been attached to their data.</p><p>That problem becomes much harder at a big data scale. A bucket may contain millions or billions of objects, receive constant writes from ingestion pipelines, and accumulate derived context from AI, analytics, compliance, and media workflows. At that point, discovery is no longer about finding a single file. It becomes a data management problem: understanding the current state of a large object estate, tracking how that estate changes over time, and making attached knowledge queryable without building a separate metadata platform.</p><p>S3 Metadata addresses that problem by providing a managed discovery layer for objects, object activity, and annotations. Instead of treating data and context as isolated assets, S3 Metadata makes them searchable, auditable, and queryable at scale.</p><p>Discovering information stored in S3 has often required building custom inventory systems. Organizations maintain separate databases, periodically crawl buckets, generate inventory reports, or synchronize metadata into external catalogs. As environments grow larger, keeping those systems accurate becomes increasingly difficult. The larger the bucket, the more expensive and fragile it becomes to answer basic questions such as what exists, what changed, which objects match a policy, or which files have been enriched by downstream systems.</p><p>S3 Metadata takes a different approach by automatically generating and maintaining tables that describe a bucket’s contents and activity.</p><p>When a Metadata Configuration is enabled on a general-purpose bucket, AWS creates managed Apache Iceberg metadata tables for that bucket. The tables are stored in an AWS-managed S3 table bucket rather than in the source bucket itself. Each bucket configuration includes a required journal table that captures object-level changes after the configuration is created. Customers can also enable a live inventory table to provide a queryable view of the current state of objects in the bucket, and an annotation table to make attached annotations queryable through the same analytics layer.</p><p>When enabled, each table answers a different question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wHBYxYLOxdrz5zJ8iE7E2g.gif" /><figcaption>S3 Metadata automatically maintains live inventory, journal, and annotation tables that can be queried through AWS analytics services.</figcaption></figure><ol><li>The Live Inventory Table represents the current state of the bucket. After its initial backfill completes, it provides a queryable inventory of existing objects and their associated metadata.</li><li>The Journal Table records change history. Object creations, updates, deletions, tag modifications, lifecycle transitions, and other mutations are captured in a queryable audit trail that can be analyzed using SQL.</li><li>The Annotation Table tracks the latest annotations attached to objects. Each row represents an annotation on a specific object version, making AI-generated summaries, document classifications, compliance findings, media analysis results, and other enrichment data discoverable through the same metadata layer.</li></ol><p>This is where S3 Metadata becomes especially powerful. It allows teams to use analytics tools to ask questions about the storage estate itself. Instead of scanning applications, rebuilding indexes, or relying on separate databases to understand what is in S3, teams can query metadata tables directly.</p><p>For example, imagine an organization has used AI enrichment pipelines to classify millions of documents and attach compliance findings through S3 Annotations. With S3 Metadata enabled, those annotations become queryable through Athena using familiar SQL:</p><pre>SELECT<br>    object_key,<br>    object_version_id,<br>    json_extract_scalar(text_value, &#39;$.documentType&#39;) AS document_type,<br>    json_extract_scalar(text_value, &#39;$.complianceStatus&#39;) AS compliance_status<br>FROM annotation_table<br>WHERE name = &#39;compliance-analysis&#39;<br>AND json_extract_scalar(text_value, &#39;$.documentType&#39;) = &#39;contract&#39;<br>AND json_extract_scalar(text_value, &#39;$.complianceStatus&#39;) = &#39;requires_review&#39;;</pre><p>Annotations appear in the Annotation Table as queryable rows that include the annotation name, object key, object version, and payload text. When the relevant metadata tables are enabled, Athena can query annotation data alongside inventory and journal data, using fields such as the object join key to correlate attached knowledge with object state and change history.</p><p>Since these tables are implemented using Apache Iceberg, they can be queried with familiar analytics tools. AWS Glue Data Catalog integration allows services such as Athena to discover and query the generated tables without requiring custom crawlers, inventory exports, or synchronization pipelines.</p><p>The implications are significant. Organizations can search for every contract that contains a particular compliance finding, identify documents modified during a specific period, audit object activity across petabytes of storage, and discover AI-generated classifications without building and maintaining a separate metadata platform.</p><p>Viewed through that lens, Metadata is not simply another S3 feature. It is the layer that turns a large collection of stored objects into a searchable, auditable, and governable data estate.</p><p>That completes the technical picture. The strategic implication is broader.</p><h4>The Future of S3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ol6H45bwEo8SQnj-cACdLw.png" /><figcaption>The future of S3 points toward a storage layer that can also structure, enrich, search, govern, and expose data through multiple access patterns.</figcaption></figure><p>The larger story is not that Amazon S3 now has tables, vectors, files, annotations, and metadata as separate product features. The larger story is that AWS appears to be moving more of the data platform closer to the storage layer itself.</p><p>None of these ideas is new on its own. Table formats, vector search, file systems, metadata catalogs, and enrichment pipelines have existed for years. What is changing is where those capabilities are implemented. Instead of requiring customers to continuously assemble layers of infrastructure around S3, AWS is turning S3 into a more capable foundation for data-driven systems.</p><p>That does not mean every workload should move entirely into S3. Dedicated databases, search engines, file systems, analytics platforms, and vector databases will continue to matter. There will always be workloads that require specialized performance, advanced query capabilities, low-latency access patterns, or application-specific control.</p><p>For many organizations, especially those already using S3 as the system of record, the question may increasingly move from “what external system do we need to build around this data?” to “what can S3 now do for this data directly?”</p><p>Amazon S3 has spent nearly two decades becoming the place where cloud data lives. With Tables, Vectors, Files, Annotations, and Metadata, it is beginning to look like something larger: the storage foundation where data can be organized, enriched, discovered, accessed, and understood.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d140ca4e9404" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Centralized Identity First: How Workforce Identity, Federation, and AWS Actually Fit Together]]></title>
            <link>https://medium.com/@matthew.sweeney001/centralized-identity-first-how-workforce-identity-federation-and-aws-actually-fit-together-6f7fd598a438?source=rss-139fcabe8972------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f7fd598a438</guid>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[federation]]></category>
            <category><![CDATA[iam-roles]]></category>
            <category><![CDATA[zero-trust]]></category>
            <dc:creator><![CDATA[Matthew Sweeney]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 07:01:53 GMT</pubDate>
            <atom:updated>2026-02-02T17:10:43.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gFnAuQ3NynR2RS6kcxi5A.png" /></figure><p>Identity, authentication, and permissions can confuse even experienced engineers because security often operates as an end-to-end chain, yet in practice, each access layer is governed by different systems. In a typical environment, one platform manages the workforce directory and lifecycle, another enforces authentication and MFA, another issues signed assertions or tokens that can cross system boundaries, and downstream platforms evaluate their own authorization policies. Most identity confusion stems from learning identity through isolated mechanisms, such as SSO flows, policy syntax, and role mappings, rather than through an end-to-end access architecture with clearly separated responsibilities.</p><p>The hardest part of identity is not granting access but explaining effective access end-to-end: what a principal represents, how its session was established, why a trust relationship or delegation is valid, and which policy set actually produced the final permission. As environments grow, access paths and trust boundaries multiply, making identity harder to reason about unless identity, authentication, and authorization remain conceptually distinct.</p><p>Cloud providers like AWS, Azure, and Google Cloud make this separation unavoidable. Access is enforced through assumed roles, temporary sessions, and continuous policy evaluation rather than long-lived credentials. This article walks through that evolution, from legacy enterprise identity to federation to cloud identity primitives, using AWS as the reference architecture to show how the modern identity stack fits together when designed intentionally.</p><h4>Identity Is a Hard Problem — and Easy to Get Wrong in Cloud Architecture</h4><p>Identity is often reduced to “login”, but that framing misses what identity represents in modern systems. Identity is the control plane for access. It governs not only which actions are allowed but also whether those actions are attributable, auditable, and reversible over time. Identity defines the practical boundaries of security and governance: what actions are possible, what authority can be delegated, how far compromise can spread, and whether access can be explained and reliably revoked.</p><p>Identity is difficult because it spans people, machines, policies, and time, and these concerns do not reside in a single place. Identity has a lifecycle. Permissions accumulate. Credentials are copied. Exceptions become permanent. Over months or years, systems drift into a state where access technically works, but no one can confidently explain who has access to what or why.</p><p>That drift is rarely planned. Most identity architectures are not designed for greenfield. Teams inherit patterns shaped by older infrastructure and historical constraints. They learn identity backward: how the product behaves, not how the access pipeline is architected. People learn SSO flows, IAM policies, or one-off integrations, but rarely stop to connect the chain: where identity should originate, where authentication must be enforced, how proofs of authentication are issued, and where authorization decisions must be evaluated.</p><p>AWS amplifies the consequences of confusion. In AWS, every action is an API call evaluated by policy. There is no implicit trust. If the access model is incorrect, AWS either loudly denies access or quietly allows it, and you may not detect the issue until something goes wrong.</p><p>Most identity failures do not present as outages. They manifest as governance decay: former employees retain access, shared roles become permanent, long-lived keys linger, ownership becomes unclear, and the audit trail collapses. The system continues to operate, but the organization becomes increasingly difficult to govern and increasingly exploitable.</p><p>Cloud environments amplify this because teams often build identity in reverse. Instead of treating workforce identity as an upstream source of truth and projecting it into AWS, Azure, or Google Cloud, they try to recreate it within the cloud provider. It begins as convenience and ends as constraint: credential sprawl grows, lifecycle enforcement becomes inconsistent, and the cloud platform becomes something it was never meant to be, a system of record for employees.</p><p>Identity does not have to feel opaque. Once you understand which responsibilities belong upstream, which belong within AWS, and how federation and STS bridge the two, the AWS identity model becomes logical. The complexity does not disappear, but it becomes predictable, scalable, and explainable.</p><p>To understand why the modern identity stack looks the way it does, we start where enterprise identity first lived: within the Active Directory boundary.</p><h4>Before Cloud: Enterprise Identity in the Active Directory Era</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*grQQGwEfu8i79KZ7rPB4QQ.png" /></figure><p>Before the “cloud”, enterprise IT was physical and on-premises by default. Companies ran their own data centers, owned their own servers, managed their own networks, and built internal applications within corporate infrastructure. In that world, Microsoft Active Directory was not just popular; it was the de facto identity system for Windows-centric environments.</p><p>In practice, corporate networks defined trust boundaries, and Active Directory anchored the identity model within them. Users authenticated to domains, devices were domain-joined, and access to applications and file shares could be centrally controlled. When access was needed outside the office, it flowed through controlled entry points such as VPNs and perimeter services rather than by distributing workforce identities across every external platform.</p><p>This model worked because AD did more than store usernames. It combined a directory and an authentication fabric within a single administrative boundary. LDAP (the directory lookup protocol used to query users, groups, and attributes) exposed the directory of users, computers, and groups. Kerberos (a ticket-based authentication protocol that enables domain single sign-on without re-sending passwords) handled authentication for most domain access. Group membership and access control lists became the backbone of authorization for internal resources, while organizational units (OUs) provided administrative structure and delegation boundaries for managing users and machines at scale.</p><p>It is also important to understand the operational reality behind this design. Running AD was not lightweight. It required an always-on identity infrastructure (domain controllers and DNS), reliable backup and recovery, and a managed endpoint lifecycle built around domain joins. It also carried real hardware and operational costs: patching, monitoring, incident response, and ongoing capacity planning. Entire IT teams existed to rack and maintain domain controllers, monitor replication and DNS health, rotate backups, enforce Group Policy baselines, and keep authentication reliable, because AD was critical infrastructure, not a background service.</p><p>That operating model held because applications and devices lived within physically managed environments. As workloads moved to SaaS and cloud-hosted platforms, those assumptions began to break down. Identity had to follow users across browsers, unmanaged devices, and external services. Enterprises still needed one authoritative workforce identity, but it now had to operate outside the domain boundary.</p><h4>Workforce Identity: The Central Directory and Lifecycle Control Plane</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70Q0s_S-Xe5m7msB4U0zRA.png" /></figure><p>As enterprises modernized, on-prem no longer served as the natural home for every core business system. Not every organization migrated fully, and many remain hybrid by design, but the center of gravity shifted. Email, documents, HR platforms, ticketing systems, and collaboration tools moved to SaaS. For many new workloads, cloud-hosted platforms became the default operating model.</p><p>Part of that shift was technical, but a large part was driven by operational risk and cost. Many companies no longer wanted the burden of operating business-critical identity infrastructure internally because vendors could provide hardened platforms with SLAs (contracted uptime and support guarantees), an aggressive patch cadence, compliance-aligned controls, and audit-ready logging.</p><p>That shift changed what identity needed to be. Organizations no longer need to maintain massive internal stacks just to manage users, passwords, and daily access. Yet they still need what Active Directory always provided: a single, authoritative place to create employees, assign them to groups, enforce authentication policies, and reliably offboard them. The role AD once played on-prem did not disappear. It moved upstream.</p><p>This is what workforce identity platforms provide. Architecturally, they serve as the workforce identity control plane: a centralized directory, standardized authentication and MFA, policy enforcement, and lifecycle-driven governance over time. The enterprise value is not in any specific set of collaboration tools. The value is that the organization becomes governable.</p><p>Lifecycle is where this becomes real. Consider a typical employee lifecycle. On day one, a new employee is created and provisioned into the correct groups, apps, and resources through policy. Months later, access changes can be applied centrally when roles change. On day 700, when that employee leaves, the organization can disable the account, revoke sessions, invalidate tokens, and reassign ownership without disrupting institutional continuity. These are not nice-to-haves. They are what prevent silent access risk from accumulating over time.</p><p>In many enterprises, a dedicated access layer is also introduced. Platforms such as Okta often sit in front of the SaaS footprint as an SSO and provisioning broker, standardizing application assignment, MFA enforcement, and lifecycle-driven access changes across hundreds of downstream services. For application identities, systems such as Amazon Cognito often handle authentication and MFA for end users, issuing tokens that applications can validate. Even then, the hierarchy matters: there is typically an upstream identity source where users originate and lifecycle authority resides, while the SSO layer acts as a distribution mechanism across the broader application ecosystem.</p><p>Workforce identity does not exist in isolation. Employees need access to email, cloud administration, engineering workflows, work management, communication platforms, CRM systems, and analytics tools. None of these services should serve as your employee directory, and enterprises do not want each platform to become its own credential silo with its own MFA posture, lifecycle rules, and audit story.</p><p>Once workforce identity is centralized upstream, the next step becomes inevitable: projecting that identity across everything else. Federation is the mechanism that makes distributed access manageable.</p><h4>Federation: How SAML and OIDC Move Identity Across Boundaries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhyeVEOaFJa3pCBpO1vWHg.png" /></figure><p>With a centralized workforce directory in place, the next problem becomes unavoidable: users still need access to everything else, including AWS, SaaS applications, engineering platforms, internal tools, and partner portals. None of these platforms wants to become your company’s employee directory, and enterprises do not want each downstream system to become its own identity silo with separate passwords, MFA policies, lifecycle rules, and audit requirements. If every system becomes its own identity database, identity becomes ungovernable almost immediately.</p><p>This is what federation solves.</p><p>Modern cloud identity is largely federated identity. Applications do not want to manage your password. They want to outsource authentication to a central authority and accept a trusted, cryptographically verifiable proof that the user successfully authenticated. That is what federation is: projecting identity across trust boundaries without cloning the entire workforce directory into every system.</p><p><strong>Federation creates a clear division of labor</strong></p><p>Federation works at scale because it cleanly splits responsibilities:</p><ul><li><strong>Upstream (workforce identity / IdP):</strong> owns who the user is, how they authenticate, the MFA/conditional access posture, and the employee lifecycle: onboarding, role changes, and offboarding.</li><li><strong>Downstream (apps / cloud platforms):</strong> owns what users can do here, using its own local authorization model.</li></ul><p>This division is key. Authentication must be centralized to be governable, and authorization must remain local to be accurate.</p><p><strong>The line you can’t blur: Federation is authentication, not authorization</strong></p><p>Federation answers:</p><ul><li><strong>Who is this user?</strong></li><li><strong>Did they authenticate successfully under the upstream policy?</strong></li><li><strong>What attributes/claims is the upstream identity system asserting?</strong></li></ul><p>Federation does <em>not</em> answer:</p><ul><li><strong>What are they allowed to do on this platform?</strong></li></ul><p>Federation proves identity and delivers claims, but the target platform determines how those claims translate into access through its own permission model (roles, RBAC assignments, entitlements, and resource-level policies). If there is one idea worth taking from federation, it is this separation. Upstream systems authenticate and assert identity, while downstream systems authorize actions locally, where enforcement occurs.</p><p>At this point, the architecture is clear: authentication remains centralized at the IdP, and downstream systems remain responsible for authorization. The remaining question is how the downstream platform can verify that authentication occurred upstream without handling passwords or MFA. In practice, nearly all enterprise federation reduces to two standards: SAML and OIDC. They solve the same structural problem but were designed for different eras and access patterns.</p><ul><li><strong>SAML (Security Assertion Markup Language): </strong>the classic enterprise federation pattern. It proves identity to an application by delivering a signed XML assertion via a browser-based SSO flow. It remains widely used for workforce SSO.</li><li><strong>OIDC (OpenID Connect):</strong> a modern identity layer built on OAuth 2.0. It proves identity using signed JWT tokens (especially ID tokens) for web, mobile, and API apps, as well as for automation. It dominates cloud-native and application authentication patterns.</li></ul><p>Both solve the same structural problem: how can a downstream platform verify authentication without owning passwords, MFA, or lifecycle?</p><p><strong>SAML Expanded: The Classic Enterprise Federation Pattern:</strong></p><p>SAML is best understood as enterprise browser SSO. The application you want to access is called the Service Provider (SP). The upstream identity system is the Identity Provider (IdP). The IdP authenticates the user, and the SP establishes a local session and applies access rules based on the IdP’s assertions.</p><p>In a standard SAML sign-in, the user attempts to access the SP, which redirects them to the IdP. After authentication, the IdP issues a SAML assertion, a signed XML document that confirms successful authentication and provides identity attributes (often including group or role claims). The assertion is time-bound and audience-restricted, meaning it is valid only for a specific target SP and for a limited duration.</p><p>The reason SAML works comes down to one trust primitive: signature verification and assertion condition validation. The SP does not trust the browser. It trusts the IdP’s signing key.</p><p>That is why SAML integrations include importing IdP metadata. The SP imports the IdP metadata XML, which contains the IdP’s public X.509 certificate used to validate the assertion signature. If the signature verifies and the conditions are valid (issuer, audience, timestamps), the SP establishes a local session for the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nt4Xz2BL58HEmNlG8Gitg.gif" /></figure><p>A key point is that SAML does not grant permissions directly. The IdP provides claims (identity attributes and often group membership), and the SP maps those claims into its own authorization model: local roles, RBAC assignments, entitlements, or policy decisions. This separation is why SAML scales in enterprises. Authentication and lifecycle governance remain centralized upstream, while each downstream platform remains the source of truth for what access actually means.</p><p>This also explains why classic enterprise identity was so “sticky” during the Active Directory era. In many environments, users did not even realize authentication was occurring. On a domain-joined Windows machine, authentication to the IdP could occur transparently via Integrated Windows Authentication, backed by Kerberos. The IdP (historically AD FS) translated internal AD authentication into a SAML assertion for external services.</p><p>This was the bridge that made the on-premises identity model compatible with SaaS. AD remained the identity source, Kerberos remained the internal authentication mechanism, and SAML became the external transport that allowed identity to extend beyond the corporate network without copying passwords between platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjKEBC63uwgIWA8T_g61YA.gif" /></figure><p>That is the durable mental model for SAML. It is browser-based federation in which the IdP authenticates the user (so the application never handles the user’s password), then vouches for the login by issuing a signed assertion that the Service Provider verifies before creating a local session.</p><p><strong>OIDC Expanded: Federation for Modern Apps and APIs</strong></p><p>OIDC addresses the same authentication problem as SAML, but in a different context. Instead of enterprise portals and XML assertions, OIDC is designed for web applications, mobile apps, APIs, and automation. It is built on HTTP-native identity flows and JSON-native tokens.</p><p>In OIDC, the identity provider issues a set of tokens, including an ID token. The ID token is usually a JWT containing identity claims and signed by the IdP. It serves as portable proof of authentication that can be presented to downstream applications and APIs. It is not a session by itself. It is a signed statement that authentication occurred upstream, and the downstream application uses it to create its own session.</p><p>The trust model again relies on signature verification, but instead of importing a SAML metadata file containing an X.509 signing certificate, systems validate JWTs using the IdP’s published public keys. These keys are exposed via a JWKS (JSON Web Key Set) endpoint. When a backend receives a JWT, it verifies the signature against those keys and validates the token claims that make it trustworthy, including issuer, audience, and expiration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-sWZwJe3Qet-yCU5r9oqA.gif" /></figure><p>OIDC can also carry claims that downstream systems can use for access decisions, such as groups or roles. As with SAML, however, those claims are not permissions. They are inputs to authorization. The target system still decides which actions are allowed, using its own policy model.</p><p>This is why OIDC is so natural for modern systems. It integrates directly into API request patterns. A client can authenticate once, receive tokens, and then call downstream services while presenting those tokens as proof of identity.</p><p>Like SAML, OIDC is not an authorization protocol. Authentication is centralized at the IdP, while access control remains local to the platform that owns the resource.</p><h4>AWS Identity Fundamentals: IAM, STS, and Session-Based Access</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TId9-DpWZsk5ffzBA_WmxQ.gif" /></figure><p>AWS Identity and Access Management (IAM) is a globally scoped service that provides the security framework for every AWS action. In AWS, access is not based on where you are on the network or whether you “logged into a server.” It is based on whether the API call you are making is authorized. Every operation in AWS, whether it is provisioning infrastructure, reading data, updating configuration, or invoking a managed service, is ultimately an API request that must be authenticated and then authorized by policy.</p><p>This is the core mental model shift: AWS is not trying to be your workforce identity provider. IAM is first and foremost an authorization system for AWS API access. It is the policy evaluation engine that determines which principals can perform which actions within the AWS control plane across all services.</p><p>Architecturally, AWS services operate through the AWS control plane, the distributed management layer that orchestrates resource provisioning and configuration across regions. IAM integrates with that control plane as the consistent access enforcement layer. The result is a uniform authorization model: regardless of the service you are interacting with, AWS evaluates the request using IAM policy logic.</p><p>At runtime, IAM processes requests by validating the caller’s identity and credentials (access keys, session tokens, or other temporary security credentials). After authentication, IAM evaluates all applicable policy inputs and resolves the request to Allow or Deny. This evaluation occurs on a per-request basis, which is why AWS identity is best understood as session-based and policy-driven rather than as “accounts and passwords.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*bTycCwHchMQ-uTU-0ct3hQ.png" /></figure><p><strong>Where permissions are expressed in AWS</strong></p><p>To understand IAM without getting lost in service-specific details, it helps to simplify AWS authorization into three core places where permissions are defined:</p><ul><li><strong>IAM policies</strong> <strong>(identity-based policies):</strong> define which actions a principal is allowed to perform.</li><li><strong>Resource-based policies:</strong> define who is allowed to access a specific resource.</li><li><strong>IAM roles:</strong> define the session identity AWS expects you to use, including who can assume the identity and what it can do.</li></ul><p>Together, these form the backbone of AWS access control. Each consists of policy statements that specify actions, resources, and optional conditions that constrain when access is valid. The implementation details differ, but the purpose remains the same: AWS represents access as a policy, and IAM evaluates that policy on every API call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Os8M6sEG4KMGlMqHqg_X_w.gif" /></figure><p><strong>IAM policies: explicit allow, explicit deny, deny by default</strong></p><p>IAM policies are JSON documents that explicitly allow or deny actions on AWS resources. These policies can be attached to IAM identities, such as users, groups, or roles. When a policy is attached to a role, it becomes the permission policy for sessions assumed through that role.</p><p>AWS uses a deny-by-default model. If an action is not explicitly allowed, it is denied. If any explicit deny applies anywhere in the evaluation chain, it overrides any allow. This is why IAM can feel strict for new engineers: AWS does not infer access. Access must be explicitly granted.</p><p>A simple example is a policy that grants read access to objects in an S3 bucket while explicitly denying deletion. That policy does not “configure S3.” It defines what the caller is allowed to do, and IAM enforces it on every API request.</p><p><strong>STS: the engine behind session-based AWS access</strong></p><p>AWS Security Token Service (STS) is the engine that makes AWS identity practical at scale. Instead of issuing permanent credentials everywhere, STS enables AWS to operate as a session-based system. Authenticated identities receive short-lived, cryptographically verifiable session credentials that can be scoped to exactly what is needed and for exactly as long as needed.</p><p>This is one of the most important identity concepts in AWS: access is not expressed as “this person has a password.” It is expressed as “this principal has an active session, derived from a role, with a bounded set of permissions.”</p><p>STS makes that possible. It converts trust into runtime access by issuing temporary security credentials (access key, secret access key, and session token) that represent a permissioned session. Those credentials expire automatically, sessions are logged, and the blast radius is constrained by time. This is why secure AWS architectures default to role assumption and temporary sessions rather than long-lived keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jw8cAMaF7ISdWP1UHpr5lg.gif" /></figure><p><strong>IAM roles: the unit of access AWS is designed around</strong></p><p>IAM roles are the unit of access AWS is designed around. Roles are identities with permissions that are meant to be assumed, not owned. Unlike IAM users, roles do not have long-term credentials. When access is needed, a trusted entity assumes the role and receives an STS session with temporary credentials.</p><p>Every role is defined by two policy layers:</p><ul><li><strong>Trust policy:</strong> who is allowed to assume the role (who can become the principal)</li><li><strong>Permission policies:</strong> what the role is allowed to do once assumed (what the principal can do)</li></ul><p>This separation is the core AWS mental model. Trust determines who can become the principal. Permissions determine what the principal can do. Together, they form an access design that is both scalable and explainable: you can separate “who is allowed to obtain authority” from “what that authority means.”</p><p>IAM users still exist, but they represent long-lived identities with persistent credentials. They are primarily used in constrained scenarios, legacy systems, or break-glass administration. Modern AWS access should be role-based and session-oriented, with STS issuing short-lived sessions that can be governed and audited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3DjVKmDsUa64jElGQZwmHw.gif" /></figure><p><strong>Permission boundaries: maximum permissions, not permission grants</strong></p><p>Permission boundaries add an additional layer of governance. A permission boundary defines the maximum permissions a principal can ever receive, even if an identity-based policy attempts to grant more. It does not grant access on its own; it limits access.</p><p>This is a subtle but powerful tool for delegation at scale. Boundaries allow teams to attach or manage permissions within an envelope, preventing accidental privilege escalation beyond what the organization has deemed acceptable.</p><p>When AWS evaluates access, it considers the combined effect of policies and the permission boundary. An action is permitted only if it is allowed by both the policy and the boundary. If the boundary does not include a permission, that permission does not exist, even if an attached policy attempts to grant it. This is how boundaries prevent privilege creep in dynamic environments where roles evolve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIH39IBKXRGvcmCwPX5vrw.gif" /></figure><p><strong>IAM as continuous policy evaluation</strong></p><p>At the systems-design level, IAM continuously enforces authorization across the AWS control plane. This enforcement is consistent across AWS services, even when requests are made to different managed services, because nearly every meaningful action in AWS resolves to an API call that must be authorized. IAM validates each request against the full policy evaluation context, including identity-based policies, resource-based policies, session context, and governance limits such as permission boundaries.</p><p>This is why AWS identity is best understood as an access pipeline rather than a set of static accounts. The caller becomes a principal through a trust decision, receives an STS session, and every action in AWS is authorized in real time against policy. That is what makes AWS secure when designed correctly and ungovernable when designed carelessly.</p><h4>The three bridges into AWS</h4><p>Once you understand workforce identity, federation, and the AWS primitives (IAM, roles, and STS sessions), the AWS identity ecosystem stops feeling like a pile of overlapping services and comes into focus.</p><p>There are only three ways identities enter AWS. Everything else is detail.</p><p><em>(Technically, there is a fourth: the root user. It is a real access path and required for a small set of account-level operations, but it is not part of the day-to-day identity model.)</em></p><p>Most AWS identity confusion stems from mixing the three bridges, treating them as interchangeable, and expecting AWS to behave like a single unified identity system. It is not. AWS is an authorization platform with multiple identity entry points, each for a distinct identity domain.</p><p>The classification is simple and unavoidable:</p><ul><li>Who runs infrastructure in AWS? → IAM</li><li>Who works at the company and needs workforce access? → IAM Identity Center</li><li>Who uses your application? → Amazon Cognito</li></ul><p>This is not a preference. It is architecture. In many cases, the correct bridge is determined by the identity domain you are solving for. Problems arise when teams blur those domains and use a single bridge as a universal entry point. That is when lifecycle governance, session scope, and permission boundaries no longer align, and risk accumulates quietly over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*el3SPI1qvR79rlLW0LOTEw.png" /></figure><p><strong>Bridge #1: IAM (Infrastructure and Workloads)</strong></p><p>IAM is AWS’s native identity and access management system. It is not “AWS login.” It is the control plane for principals, policies, and role sessions. IAM defines who a principal can become, what that principal is allowed to do, and how AWS evaluates every request across all services.</p><p>In practice, IAM is where:</p><ul><li>Workload identity lives (EC2 instance profiles, ECS task roles, Lambda execution roles)</li><li>Service-to-service authorization lives</li><li>Cross-account delegation lives</li><li>Fine-grained AWS policy evaluation occurs (identity-based policies, resource-based policies, conditions, boundaries, SCPs, session context)</li><li>Human access can exist (IAM users and assumed roles), even when access is typically federated in mature environments.</li></ul><p>IAM is the bridge to infrastructure because infrastructure requires AWS-native identities that are automatable and auditable. These are architecture-defined identities used by workloads, services, and automation, not workforce accounts created through employee onboarding.</p><p>For humans, modern AWS access is role-based and session-oriented. Long-lived credentials create lifecycle overhead and unnecessary risk at scale. The IAM design centers on roles and short-lived STS sessions, with explicit policy evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwVqSY86VzXs-Hp6DrvR6A.gif" /></figure><p>The deeper point is this: IAM is not trying to be your company directory. It is trying to be the authorization engine for AWS. That is why it is built on role assumption and session credentials rather than on passwords and persistent accounts.</p><p><strong>Bridge #2: IAM Identity Center (Workforce Federation at Scale)</strong></p><p>If IAM is the control plane for AWS authorization, IAM Identity Center is the bridge that enables governable workforce access across a multi-account AWS environment.</p><p>IAM Identity Center (formerly AWS SSO) solves the real workforce problem: how do humans gain consistent AWS access across many accounts without turning each account into its own identity silo? In other words, how do engineers, analysts, admins, and operators gain AWS access via an upstream identity, with lifecycle and MFA enforced centrally, while still landing in AWS as role-based STS sessions?</p><p>Identity Center addresses this at scale by connecting an upstream enterprise identity provider to AWS accounts and mapping workforce groups to permission sets that resolve into IAM roles across accounts. The mental model must be precise here: IAM Identity Center does not replace IAM. It operationalizes workforce federation and consistently places users into IAM role sessions across accounts.</p><p>Identity Center is not a separate authorization system. It is the workforce access layer that connects an upstream IdP to AWS Organizations and converts group membership into consistent, role-based access across accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LQEYHVwCA0l_sS2Kkxw1A.gif" /></figure><p>This is why Identity Center matters so much in organizations. Without Identity Center, workforce access across multiple AWS accounts becomes a drift factory. Each account would develop its own patterns, including inconsistent role naming, trust relationships, and one-off mapping rules. Identity Center provides a consistent entry point, helping the organization remain governable as the account footprint grows.</p><p><strong>Identity Center also serves as an identity store for AWS-managed services.</strong></p><p>Identity Center is not only “SSO into AWS accounts.” A growing number of AWS-managed services can use IAM Identity Center as their identity source for their workforces. Instead of creating long-lived IAM users or maintaining a separate service-specific user directory, these services can treat Identity Center users and groups as the human identity layer.</p><p>The practical takeaway is that many AWS services support multiple identity modes, and Identity Center is increasingly the preferred option for workforce access. It allows the service to maintain its own service-level user experience while inheriting centralized authentication, MFA posture, and lifecycle governance from the upstream workforce identity system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsrJ2jChbGWjLc74ogOX9Q.gif" /></figure><p>This is why this mental model matters. Engineers often assume IAM users are the universal answer to “human identity in AWS.” In reality, AWS promotes federated access patterns for the same reason enterprises do: lifecycle and session control must remain centralized, and services should not become unmanaged credential stores.</p><p><strong>Bridge #3: Amazon Cognito (Customer and Application Identity)</strong></p><p>Cognito is the third bridge and represents a distinct identity domain.</p><p>IAM and Identity Center manage access to AWS and AWS accounts. Cognito manages access to your application. Cognito is not “for AWS admins.” It is for users of your software, including customers, partners, contractors, and internal business users who are not administrators.</p><p>Cognito exists because application identity has different requirements than workforce identity:</p><ul><li>different lifecycle (customers are not employees)</li><li>different privacy and security boundaries</li><li>different authentication UX needs (sign-up, password reset, recovery, MFA flows)</li><li>different access patterns (web and mobile)</li><li>different scale and threat model</li></ul><p>That difference matters. Mixing workforce identity and application identity collapses governance. It blurs audit boundaries and pushes employee-grade controls into consumer identity problems, or vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FBTAcBJhMPw3SfKmtIARcw.gif" /></figure><p>Cognito has two major components that map directly to two distinct access needs. One handles application sign-in and token issuance. The other provides limited, temporary access to AWS resources when an authenticated user needs to interact with AWS directly.</p><ul><li>User Pools issue JWTs that represent authenticated application users.</li><li>Identity Pools exchange external identity proof for AWS credentials by invoking STS on the user’s behalf.</li></ul><p>This is the most important thing to keep in mind. Cognito is an identity system for applications, but it can also integrate directly with AWS services when needed. Sometimes that happens via JWT-based authorization (for example, with API Gateway Cognito authorizers), and sometimes via exchanging identity proof for AWS credentials via STS sessions.</p><p><strong>Cognito User Pools: application login and JWT sessions</strong></p><p>User Pools are the application authentication engine. They handle sign-up, sign-in, MFA, password resets, hosted UI flows, token refresh, and JWT issuance.</p><p>JWTs are the core output of User Pools. They serve as signed proof that authentication occurred and provide a portable identity context your application can trust when creating sessions and enforcing application-level access.</p><p>User Pools can authenticate users in three ways:</p><ul><li><strong>Internal directory</strong> (Cognito’s user directory)</li><li><strong>OIDC federation</strong></li><li><strong>SAML federation</strong></li></ul><p>This lets your app either own its users directly or inherit an upstream identity without hard-coupling your application to a specific identity platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXAgDurF-JMkzs9OQJ3BRA.gif" /></figure><p>This boundary is consistent across the identity stack. User Pools authenticate identities, but your application still owns authorization. A JWT proves who the user is and that they are authenticated. It does not define what the user is allowed to do within your business domain unless your application maps claims to its own permission model.</p><p><strong>Cognito Identity Pools: federated identity into AWS credentials</strong></p><p>Identity Pools exist for a different reason. Sometimes an application user needs direct access to AWS resources, such as uploading files to S3, accessing IoT services, invoking APIs, or interacting with AWS-managed services.</p><p>In those cases, you do not want to embed AWS credentials in an application, and you do not want to manage IAM users for app users. You want the same model AWS uses everywhere: federate identity, then exchange it for temporary credentials.</p><p>That is what Identity Pools do. They accept identity proof (OIDC tokens, SAML assertions, or Cognito-issued tokens), map the identity to an IAM role, and then invoke STS to obtain temporary credentials. The user receives time-bound AWS credentials without becoming an IAM user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azHGpSs6odwNDQUoozMR8w.gif" /></figure><p>That is the core purpose of Identity Pools. They let authenticated application users access AWS resources safely by converting identity proofs into short-lived role sessions via STS, without creating IAM users or distributing long-lived credentials.</p><p><strong>The governing principle is simple. Keep identity domains separate.</strong></p><p>Most AWS identity confusion stems from treating IAM, Identity Center, and Cognito as interchangeable identity products. They are not. Each serves a distinct identity domain and enforces different assumptions:</p><ul><li>IAM is for AWS-native authorization and workload identity.</li><li>Identity Center is for workforce federation into role sessions across accounts.</li><li>Cognito is for application users and application sessions.</li></ul><p>When each identity domain enters AWS through the right path, access remains explainable, auditable, and scalable. When those domains are blurred, identity becomes harder to reason about, harder to revoke cleanly, and harder to govern over time. With this model in place, the next step is to apply it consistently across real access scenarios.</p><h4>Choosing the Right Model</h4><p>From here, the architecture comes down to one thing: enforce the correct identity boundary for the domain you’re solving. At scale, identity rarely fails because a feature is missing. It fails when boundaries are blurred, and the wrong identity ends up in the wrong system. Access becomes difficult to explain, audit, and revoke reliably.</p><p>The first boundary to internalize is subtle but critical: AWS does not have a single shared identity provider configuration. IAM, IAM Identity Center, and Cognito are three separate identity systems, and each has its own definition of an identity provider.</p><p>A SAML or OIDC provider configured in IAM (via metadata XML or a JWKS URL) is not automatically usable by Identity Center or Cognito. Likewise, federation configured within Cognito User Pools does not carry over to IAM or Identity Center. An upstream IdP integration configured in Identity Center is not inherited by IAM or Cognito. You can connect the same upstream identity provider to all three, but you configure it independently within each bridge. That separation is not an annoyance. It is AWS forcing the real architectural question: which identity domain is entering AWS, and through which entry path?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*km7jTdXT0xjR5xi3y1Y2zQ.gif" /></figure><p>Once you accept that, the decision rule becomes straightforward: centralize authentication upstream, where the lifecycle and MFA are managed; express access within AWS as role sessions issued by STS; and keep authorization close to the platform that owns the resource. If you follow that pattern, AWS remains explainable. You can always answer who is calling, how they authenticated, what role they assumed, and which policies produced the final permission.</p><p>From there, the correct model for each domain becomes almost mechanical.</p><p><strong>Workforce access → Identity Center + external IdP (SAML/OIDC)</strong></p><p>Humans should access AWS via the IAM Identity Center, which is backed by an upstream IdP. Workforce federation has historically relied on SAML because workforce SSO is browser-driven, policy-heavy, and group-driven. Enterprises want a centralized MFA posture, conditional access, and device posture, group claims that map to roles, and a portal-friendly UX. SAML aligns with the operational reality of workforce governance, which is why it remains widely deployed.</p><p>That said, for multi-account AWS governance (Identity Center + AWS Organizations), the modern default is: use OIDC if your IdP supports it cleanly; otherwise, use SAML (still extremely common and fully valid). The broader choice is not the protocol. It is whether workforce identity is centralized upstream and projected into AWS. If the answer is yes, Identity Center, along with an external IdP, is the only model that remains governable as organizations scale across many AWS accounts.</p><p><strong>Automation / CI/CD / Kubernetes → OIDC directly into IAM</strong></p><p>Workloads and pipelines should federate directly into IAM via OIDC. This is the modern replacement for static access keys in CI. Pipelines do not need permanent identities in AWS. They need a repeatable, auditable, time-bound authority that is valid only while they run.</p><p>OIDC dominates here because modern workload identity is HTTP- and token-native: signed JWTs, machine-friendly flows, ephemeral sessions, and no browser redirects. The runtime model remains consistent across platforms: a trusted external identity provider issues a signed token, AWS validates the issuer and claims, and STS converts the authenticated identity into a short-lived role session with scoped permissions.</p><p><strong>Application/customer users → Cognito User Pools (OIDC)</strong></p><p>Application users belong in Cognito User Pools, typically using OIDC. The runtime shape here is JWT-based application sessions, with authorization remaining within the application. This is a distinct identity domain with distinct invariants: different lifecycle, privacy boundaries, and UX requirements (sign-up, recovery, MFA flows), and a different threat model. Cognito exists because application identity is not the same as workforce identity.</p><p>When application users need limited AWS access (uploads to S3, IoT calls, direct AWS API calls), the model remains consistent with the rest of AWS: federate identity proof and exchange it for temporary AWS credentials via STS (Identity Pools), rather than minting IAM users for customers.</p><p><strong>AWS services → IAM roles only</strong></p><p>AWS services should use only IAM roles: instance profiles, task roles, execution roles, and managed service roles. These are not “users.” They are workload identities expressed as roles, assumed automatically, and continuously evaluated by IAM policies. There is no service-wide “user directory” concept at the AWS control plane level. A service becomes a principal by assuming a role, receives STS credentials, and IAM authorizes every API call.</p><p>If you want the shortest list of anti-patterns that reliably produce an ungovernable AWS environment, it is always the same three: IAM users for humans, static access keys in CI/CD, and mixing workforce identity with application identity. Those decisions scatter identity and permissions across the environment, weaken lifecycle governance, and create an access model that becomes increasingly difficult to explain or revoke.</p><p>The “right” model reduces irreversible risk: authentication remains centralized upstream and enforceable by policy, authorization stays in AWS as least-privilege roles, and sessions remain temporary by default and auditable by design. If you keep identity domains separate and let AWS operate as the session-based authorization platform it was designed to be, identity stops feeling like a pile of services and becomes what it actually is: a predictable access pipeline.</p><h4><strong>Choosing Your Upstream Identity</strong></h4><p>Everything downstream depends on one upstream truth: where does your workforce identity live? This is not a feature comparison. It is a control plane decision. You are choosing the system that will own user creation, lifecycle enforcement, MFA posture, and the only offboarding story that actually matters: disable once to cut access everywhere.</p><p>In practice, most organizations anchor workforce identity in one of three places. A Microsoft ecosystem (Microsoft 365 + Entra ID). A Google ecosystem (Google Workspace + Cloud Identity). Or a dedicated IdP layer (Okta, Ping, Duo, and others), often layered on top of Microsoft or Google as an access broker across a large SaaS footprint.</p><p>Entra ID dominates because it is not “just an IdP”. It becomes a gravity well. Microsoft 365 pulls identity upstream by default: email, collaboration, SharePoint, OneDrive, Teams, device management, and access policy converge into a single operating model. The hybrid story is also unusually strong. If your organization has an existing on-prem Active Directory, Entra provides a natural path to integrate it through directory synchronization and hybrid patterns, allowing you to modernize authentication without cloning identities across systems. And Conditional Access plus device posture enforcement becomes first-class, especially in Windows-centric environments. In other words, in Entra-heavy organizations, identity is not a separate project you “add later”. It becomes the foundation for how the company operates.</p><p>Google Workspace dominates in a different category of organizations: cloud-native, SaaS-first, browser-first environments that have never built a deep dependency on legacy AD patterns. In these orgs, Gmail is the center of gravity, as Exchange is in Microsoft worlds, and the identity posture tends to be simpler to operate: fewer legacy assumptions, less hybrid complexity, and lower day-to-day overhead. Workspace + Cloud Identity can be an extremely clean upstream identity foundation when the organization’s reality is modern and web-native by design.</p><p>Dedicated IdPs exist because large organizations often need a standard SSO and provisioning broker that spans hundreds of downstream applications. In many of these designs, Microsoft or Google may still serve as the source directory, but the IdP becomes the operational layer that manages app onboarding, assignments, access rules, and federation integrations at scale. This pattern persists because it reduces the likelihood that every downstream platform becomes its own identity silo with its own group model, MFA posture, and lifecycle logic.</p><p>The upstream decision rule is simple: choose the platform your organization will actually operationalize for lifecycle governance, MFA enforcement, and access policy at scale. The failure mode is not “SSO breaks.” The failure mode is governance decay: inconsistent MFA, fractured group models, weak offboarding, and identity logic scattered across too many systems to audit or unwind. Your upstream identity choice determines whether everything downstream becomes a coherent pipeline or a permanent integration project.</p><h4>Closing Thoughts: Identity as an Access Pipeline, Not a Product Feature</h4><p>If there’s one idea worth taking away from this entire article, it’s this: identity is not “login.” Identity is the architecture that determines whether an organization remains governable over time. It is the system that determines how authority is created, delegated, constrained, audited, and reliably revoked.</p><p>The reason identity feels confusing is not that the standards are complicated. It’s because identity is a chain, and most teams encounter it in fragments: an SSO integration here, an IAM policy there, a GitHub OIDC setup later, and a one-off admin exception when something breaks. It all “works,” but it doesn’t form a coherent model. That is when identity begins to decay, not through outages, but through quiet drift.</p><p>The modern identity stack becomes logical when you stop thinking in terms of products and start thinking in terms of responsibility boundaries:</p><ul><li>Workforce identity platforms own the directory and lifecycle.</li><li>IdPs own authentication policy and MFA enforcement.</li><li>Federation (SAML/OIDC) transports proof of authentication across boundaries.</li><li>AWS IAM evaluates authorization locally, continuously, and explicitly.</li><li>STS turns trust into time-bound, auditable, session-based access.</li><li>Roles become the unit of delegation and the unit of blast radius.</li></ul><p>This is what “centralized identity first” actually means: not centralizing everything, but centralizing the parts that must be centralized (authentication and lifecycle), and leaving authorization where it must live (at the resource platform), expressed through assumed roles and policy evaluation.</p><p>AWS is not special because it’s more complicated; it’s special because it’s more honest. It forces you to see the truth that was always there: every action is an API call, and every API call must be explainable. When identity is built correctly, AWS becomes predictable, scalable, and secure by design. When identity is built backward, AWS becomes a maze of one-off exceptions and permanent credentials.</p><p>The real goal isn’t memorizing SAML flows or IAM policy syntax. It’s being able to answer, for any access path, four questions with confidence:</p><ol><li>Who is the principal?</li><li>How did they authenticate?</li><li>Why is the trust valid?</li><li>Which policies produced the final permission?</li></ol><p>When you can answer those four questions, identity stops being mysterious. It becomes what it always should have been: a clean access pipeline, centralized where governance must be centralized, distributed where reality demands it, and always anchored in short-lived sessions, least privilege, and explainability.</p><p>That is what modern cloud identity is. Once you see it that way, it stops being a tangle of services and becomes one of the most powerful and elegant parts of cloud architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f7fd598a438" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Embeddings to Enterprise RAG: Understanding Vector Space Semantics, OpenSearch, and AWS…]]></title>
            <link>https://medium.com/@matthew.sweeney001/from-embeddings-to-enterprise-rag-understanding-vector-space-semantics-opensearch-and-aws-779200234a47?source=rss-139fcabe8972------2</link>
            <guid isPermaLink="false">https://medium.com/p/779200234a47</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[opensearch]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[bedrock]]></category>
            <dc:creator><![CDATA[Matthew Sweeney]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 03:13:58 GMT</pubDate>
            <atom:updated>2025-11-03T13:55:16.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Embeddings to Enterprise RAG: Understanding Vector Space Semantics, OpenSearch, and AWS Bedrock Knowledge Bases</h3><p>In enterprise AI, real value emerges not from isolated model outputs, but from systems that anchor generative reasoning in verified organizational knowledge. Modern architectures increasingly rely on semantic embeddings, vector databases, and managed retrieval pipelines to transform unstructured information into operational intelligence. This article first explains how meaning can be modeled as position and proximity within high-dimensional space. It then demonstrates how, on AWS, that conceptual foundation translates into production architectures for Retrieval-Augmented Generation (RAG) using OpenSearch and Bedrock Knowledge Bases.</p><h3>What is context in spatial terms?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*ApvCPYnLNoP75sG_noi5kA.jpeg" /></figure><p>At a conceptual level, this section examines how <strong>semantic context</strong>—<em>the entire conceptual meaning of an expression, including relationships, intent, and situational nuance</em>—can be represented mathematically. In this view, context becomes something that can be encoded as a point in a <strong>vector space<em>—</em></strong><em>a structured domain defined by numerical coordinates in which relationships among points can be quantified through operations that measure distance, direction, and similarity</em>.</p><p>To appreciate this abstraction, consider how humans process language. We do not store sentences as strings of individual words; instead, we derive meaning by interpreting relationships among entities, actions, intentions, and circumstances, then forming an internal conceptual representation. For example, when someone says “<em>the meeting was pushed back,</em>” we immediately infer a scheduling delay rather than a physical motion, because our minds encode meaning through context, experience, and semantic association rather than literal phrasing.</p><p>Now consider the possibility that the complete semantic context of any thought or expression could be expressed as a single coordinate in space. Ideas with related intent or subject matter would cluster near one another, while unrelated concepts would lie farther apart. In this framing, semantic context becomes something that can be positioned, compared, and navigated. A single coordinate can capture tone, topic, implication, and relational structure, transforming abstract understanding into a spatial form suitable for computation and inference.</p><p>Semantic context, however, is more intricate than any three-dimensional structure can support. Human meaning is not confined to simple axes such as subject, sentiment, or topic. It encompasses metaphor, emotional nuance, cultural expectations, temporal reference, implied causality, and shared assumptions, all operating simultaneously. Consider “<em>the project finally set sail</em>” versus “<em>the boat set sail at dawn.</em>” The language is similar, yet the meanings differ entirely, resolved only through contextual inference. A three-dimensional model would collapse these distinctions, forcing incompatible meanings into the same region. To preserve nuance, representation must span many independent dimensions, because each additional dimension provides capacity to encode a distinct semantic feature and keep related meanings separate while still allowing subtle relationships to form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*ozOZX5T76YJfPvJIjmX3Hg.png" /></figure><p>Human intuition evolved within three spatial dimensions, and even a hypothetical fourth axis exceeds perceptual capacity. Modern machine learning, by contrast, operates in vector spaces with thousands of dimensions. Although these spaces cannot be visualized, they are fully defined mathematically and behave with consistent geometric properties. Each dimension encodes a measurable degree of variation in meaning, allowing algorithms to place points, compute distances, evaluate similarity, and infer structure with precision. High-dimensional geometry provides the representational capacity required to separate, organize, and relate linguistic nuance that would collapse in lower-dimensional space. Through this formal abstraction, language acquires a mathematically grounded spatial structure that computational systems can navigate, enabling semantic reasoning at a granularity far beyond human perceptual limits.</p><h3>How LLMs establish context<strong>:</strong></h3><p><strong>Large language models (LLMs)</strong> are increasingly integrated into everyday workflows, yet their internal workings remain largely opaque. They do not perceive language as humans do. Instead of relying on lived experience and intuition, they operate through learned structure and statistical patterns. Before producing any output, an LLM constructs an internal representation that captures relationships among words, phrases, and broader context, enabling language handling without direct comprehension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WVkeOdeJRqxznO_mI6urA.png" /></figure><p>To form this representation, LLMs do not operate directly on raw text. They first break language into <strong>tokens</strong> — <em>learned text fragments produced by a subword tokenizer that may correspond to whole words, word pieces, or character sequences </em>— and map each token into a high-dimensional vector space learned during training. These <strong>word embeddings</strong> provide initial positions shaped by usage and contextual association, placing semantically related concepts close together and separating those that differ, establishing a geometric basis for meaning.</p><p>Once word embeddings are created, they are gradually refined through transformer layers and attention mechanisms. At each layer, LLMs compute context by weighting relationships among tokens, updating their representations based on surrounding text. This process produces <strong>contextual embeddings </strong>—<em> vector representations of tokens that dynamically change based on surrounding context </em>— allowing each token’s position in the embedding space to shift to reflect its context-dependent meaning. For example, the token “<em>bank”</em> adjusts its representation depending on whether nearby tokens reference “<em>finance</em>” or “<em>rivers</em>”. Through this iterative refinement, the model forms a structured internal representation that captures relationships, intent, tone, and latent meaning across the entire input.</p><p>When this contextual representation stabilizes, a generative model selects the next token by evaluating which candidate embedding best aligns with the semantic structure built so far. This process repeats token by token, generating language in an autoregressive manner. By contrast, standalone embedding models stop after creating the contextual embeddings and do not generate text, since their purpose is representation rather than prediction.</p><p><strong>Disclaimer:</strong> <em>This overview is limited to the essential concepts required for the discussion ahead. The takeaway is that language becomes a vector-based representation in these models, allowing meaning to be encoded in a form that can be compared, refined, and related to other contexts.</em></p><h3>What is AWS OpenSearch?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EA_dJ04_tSZfKlg7qbvkSQ.png" /></figure><p><strong>AWS OpenSearch</strong> is a managed search and analytics platform that supports both traditional keyword-based search and high-dimensional vector search for <strong>semantic retrieval</strong> — <em>retrieval based on meaning rather than exact keyword matching</em>. It indexes and stores document chunks, metadata, and high-dimensional embedding vectors, enabling modern applications to retrieve information based on conceptual rather than literal text matches. By evaluating meaning instead of surface-level text similarity, OpenSearch can surface contextually relevant information across large volumes of unstructured content.</p><p>This retrieval approach differs fundamentally from SQL databases. SQL systems return results by matching structured fields and exact values defined in a relational schema, making them ideal for transactional and analytical queries such as “<em>find all purchases over $500</em>” or “<em>return all users in region X.</em>” OpenSearch, by contrast, is designed to interpret and search across natural-language content, surfacing relevant passages based on semantic similarity rather than explicit field matches. Where SQL retrieves records that satisfy defined conditions, OpenSearch retrieves text that aligns with the meaning and context of a query. For example, a query such as “<em>boat tied to dock</em>” may return content describing “<em>securing a vessel at a pier,</em>” because the system evaluates conceptual alignment rather than direct lexical overlap, enabling more accurate and context-aware results across unstructured text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rOE_RLQSP2PH0MgghKjwbA.png" /></figure><p>OpenSearch organizes information to support fast, flexible semantic search at scale. Data resides in indexes, which serve as dedicated storage and query structures optimized for their schema and retrieval mode. When configuring an index for vector search, you designate a <strong>vector field</strong> — <em>a column-like structure reserved for embedding vectors with a fixed dimensionality (for example, 256, 768, or 1,024)</em> — so each document can be represented as a point in high-dimensional space. This enables OpenSearch to operate as a vector database, allowing similarity queries to retrieve documents based on proximity in embedding space rather than keyword matching alone.</p><p>Indexes are composed of <strong>documents</strong> — <em>individual records that store both content and associated metadata</em> — each functioning as a discrete unit of retrievable knowledge. In vector-search settings, a document typically represents a segmented portion of a source, such as a text chunk, structured record, or extracted passage from a larger file, rather than the entire asset. During ingestion, each document is converted into an embedding vector and written into the designated vector field, assigning it a coordinate within the previously defined semantic space. The document’s metadata — <em>such as file path, title, tags, or timestamps</em> — is stored alongside the vector to enable filtering, governance, and traceability. This structure allows for OpenSearch to retrieve information by comparing vector positions and identifying nearby coordinates that reflect similar meaning and context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_mjm3wgzg2HOw1hHfpfpw.png" /></figure><p>Maintaining consistency when embedding content is essential. Even if two models produce vectors with the same dimensionality, they more than likely will not share the same learned semantic space. Identical text encoded by different models will map to unrelated positions, rendering the vectors incomparable. Mixing embeddings from different models within a single index will ultimately break similarity search. For reliable retrieval, all vectors in an index must be generated using the same embedding model and configuration as the one used at query time. This preserves semantic coherence and ensures that search operates within a unified meaning space rather than a fragmented one.</p><h3>Retrieval-Augmented Generation (RAG):</h3><p><strong>Retrieval-Augmented Generation (RAG)</strong> is an architectural pattern in which LLMs retrieve relevant external information at inference time and use it to guide their responses. Instead of relying solely on knowledge encoded during model training, the system embeds the user query, searches a vector store for semantically similar content, and retrieves the most relevant text. The retrieved context is then appended to the original prompt before the model begins its reasoning. This pre-contextualization increases factual accuracy, reduces hallucination risk, and enables models to incorporate private, dynamic, and domain-specific data without retraining. In enterprise environments, RAG functions as a controlled knowledge access layer, ensuring that responses remain grounded in authoritative internal sources under governance and security controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-puwbK_qCICr6DHXH2n7g.png" /></figure><p>This workflow demonstrates how retrieval augments a model’s reasoning with relevant, verified knowledge when a question is asked. The model does not guess, remember, or approximate the required information. It actively locates the most semantically aligned content, incorporates it into its internal reasoning process, and produces an answer grounded in real data rather than isolated model intuition. In practice, this shifts the system from static intelligence to adaptive, query-time intelligence, enabling AI deployments that remain current, compliant, and aligned with organizational truth as information evolves.</p><p>Implementing retrieval-based systems introduces significant engineering responsibility. In practice, teams must design and maintain the entire retrieval pipeline: parsing and chunking content, generating embeddings, managing a vector index, synchronizing data updates, enforcing embedding consistency, filtering results, and securely injecting retrieved context into prompts. They must also provision and operate the supporting infrastructure, monitor data freshness, and apply governance controls to prevent outdated or sensitive information from being surfaced.</p><p>This represents a substantial operational burden. Retrieval architectures do not operate as simple add-ons to large language models; they require continuous data engineering, infrastructure management, and security oversight. As an organization’s data estate grows and evolves, these demands compound, making scale and reliability difficult without platform-level support.</p><h3>Operationalizing Enterprise RAG with AWS Bedrock Knowledge Bases</h3><p><em>Thus far, the previous sections established the theoretical basis for representing semantic context as position in high-dimensional space, explained how language models translate text into those representations, and described how vector databases use that structure to retrieve semantically aligned information at scale. This section transitions from conceptual foundation to practical execution and examines the AWS platform that operationalizes these principles in production environments.</em></p><p><strong>AWS Bedrock</strong> is a fully managed service that provides a unified platform for building and scaling generative AI applications on AWS. It exposes foundation models from AWS and third-party providers such as Anthropic, AI21 Labs, and Meta through a single API, while abstracting the operational complexity of hosting, scaling, and securing those models. By removing the need to provision GPU infrastructure, manage model runtimes, or coordinate distributed inference systems, Bedrock enables organizations to focus engineering effort on application logic and data integration rather than low-level model operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39SCLCGQny8Qps7-QLu9gg.png" /></figure><p>In addition to model access, Bedrock incorporates capabilities necessary for enterprise-grade generative systems. It provides controls for enforcing safety policies, orchestrating agent behavior, and integrating LLM workloads with existing AWS identity, networking, encryption, and observability frameworks. These features allow generative applications to inherit AWS-native security and governance primitives, including IAM-based access control, private network connectivity, encryption at rest and in transit, auditable execution paths, and support for regulated and isolated environments.</p><p>A central function of Bedrock is its support for embedding-based retrieval. Bedrock offers managed embedding models that convert text into high-dimensional vectors for meaning-based search, enabling applications to identify and retrieve relevant internal context without operating custom embedding services or vector infrastructure. This provides a consistent and scalable foundation for retrieval-augmented systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TMEs0T0Rp3MknTbXihVKQ.png" /></figure><p><strong>Bedrock Knowledge Bases</strong> —<em> a managed retrieval layer that links enterprise content to LLMs </em>— extend this foundation further. Knowledge Bases automate content ingestion, text extraction, embedding generation, indexing, and secure context delivery. Rather than engineering and maintaining pipelines for chunking data, synchronizing embeddings, operating vector stores, and assembling retrieval logic, teams can register data sources and invoke retrieval through a native Bedrock interface. The result is a plug-and-play retrieval architecture that enforces embedding consistency. This elevates retrieval-augmented intelligence from an infrastructure-heavy pattern to a governed, repeatable capability, grounding model outputs in authoritative internal knowledge while reducing operational burden and accelerating deployment timelines.</p><h3>Architecture and Operation of Bedrock Knowledge Bases:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LNsPkuUeK84Wpxmu8aX-Q.png" /></figure><p>Configuring a Bedrock Knowledge Base formalizes the retrieval workflow into a managed, policy-controlled construct. The process comprises four core stages.</p><ol><li><strong>Create the Knowledge Base and Select an Embedding Model</strong><br>Your Knowledge Base is first initialized by selecting an embedding model that establishes the semantic space. This model converts documents into high-dimensional vectors during ingestion and embeds user queries at runtime, ensuring alignment between stored knowledge and incoming requests.</li><li><strong>Connect a Vector Store</strong><br>A vector database is attached to persist embeddings and enable similarity search. Bedrock supports OpenSearch Service, Aurora PostgreSQL with pgvector, and S3 Vectors for fully managed vector storage in select configurations. Bedrock provisions or matches the vector index with the correct dimensionality, enforces IAM-based access controls, and orchestrates secure vector insertion and retrieval.</li><li><strong>Register Data Sources</strong><br>Data sources are connected, including Amazon S3, SharePoint, internal file repositories, and websites accessed via crawlers or custom connectors orchestrated with Lambda. Bedrock retrieves source content, extracts text, and segments it into semantically coherent chunks that respect natural language boundaries where possible, producing units sized for effective embedding and retrieval.</li><li><strong>Sync and Index Content</strong><br>Bedrock embeds the chunked content, stores vectors with associated metadata in the connected index, and refreshes embeddings as source files evolve. This preserves semantic freshness and ensures the Knowledge Base reflects the organization’s current information state.</li></ol><p>Once synchronized, the Knowledge Base operates as a governed semantic retrieval surface. Each user query is embedded using the same model that processed the underlying corpus, guaranteeing consistent representation between user intent and stored knowledge. Bedrock performs nearest-neighbor search over the vector index, applies metadata filters and IAM controls, and returns the most relevant content segments. This ensures the retrieved context originates from verified enterprise sources rather than solely from model inference.</p><p>The result is a unified retrieval layer that integrates data ingestion, semantic embedding, vector indexing, and inference orchestration under a single operational control plane. Teams eliminate the need to engineer custom pipelines for parsing, chunking, embedding, indexing, and synchronization. Retrieval becomes a standardized capability that reliably augments model reasoning with authoritative knowledge, improving deployment speed, maintainability, and governance while reducing operational and security risk.</p><h3>Conclusive Thoughts:</h3><p>The evolution from human context to mathematical representation to governed enterprise retrieval marks a pivotal moment in applied AI. Meaning is no longer an implicit property interpreted by humans alone; it becomes a formal construct encoded in high-dimensional vectors, indexed for semantic proximity, and retrieved with precision at inference time. This progression transforms language understanding from a heuristic process into a verifiable, computable capability that organizations can scale, monitor, and secure.</p><p>OpenSearch delivers the vector infrastructure required to store and query semantic representations efficiently, while AWS Bedrock provides the orchestration layer that transforms retrieval-augmented intelligence from a bespoke engineering effort into a standardized enterprise pattern. By embedding content and queries in a shared semantic space, automatically synchronizing updates, and enforcing governance across the retrieval surface, Bedrock Knowledge Bases elevate RAG from an experiment to a production discipline. Internal knowledge is no longer merely available; it becomes operationally actionable, consistently surfaced, and aligned to organizational truth.</p><p>The strategic implication is clear. The future of generative AI in the enterprise will not be defined solely by model capability, but by the systems that ground model reasoning in trusted information. Models will continue to innovate, yet their value will increasingly depend on how effectively they interface with real-world knowledge under policy, audit, and scale. Embeddings give language structure, vector stores give meaning persistence and searchability, and Bedrock unifies these components into a governed intelligence layer.</p><p>Enterprises that adopt this paradigm move beyond prompting models for answers and instead architect systems that know where to look, retrieve with intent, and reason over verified truth. This shift marks the emergence of networked intelligence: not isolated models, but integrated knowledge systems capable of understanding, citing, and aligning with the information that matters most.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=779200234a47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS API Gateway Deep Dive: Public, Private, and VPC Link Integrations]]></title>
            <link>https://medium.com/@matthew.sweeney001/aws-api-gateway-deep-dive-public-private-and-vpc-link-integrations-175239e97000?source=rss-139fcabe8972------2</link>
            <guid isPermaLink="false">https://medium.com/p/175239e97000</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[vpc-endpoint]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-s3]]></category>
            <dc:creator><![CDATA[Matthew Sweeney]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 03:09:06 GMT</pubDate>
            <atom:updated>2025-10-31T14:16:27.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uemVkPwRf537C1W7ufn1kA.png" /><figcaption>api-gateway-1</figcaption></figure><p><strong>AWS API Gateway</strong> is a regional service that provides a managed solution for creating, deploying, and managing APIs to route requests from clients to backend services. It supports <strong>REST APIs</strong> — <em>designed around resources and standard HTTP methods like GET, POST, and DELETE</em> — <strong>HTTP APIs</strong> — <em>a lightweight alternative optimized for cost and latency</em> — and <strong>WebSocket APIs</strong> — <em>for real-time, bidirectional communication</em> — enabling versatile integrations for modern applications. Acting as a central entry point, API Gateway routes requests securely and efficiently through AWS’s private network or public internet, depending on the integration type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zm1U9GzJS9m8wYZOWOG3SA.png" /><figcaption>api-gateway-2</figcaption></figure><p><strong>Public integrations</strong> with API Gateway route requests over the internet when utilizing a public IP address or DNS name. These integrations are typically used to connect to on-premises servers or external APIs and rely on encrypted traffic to maintain data security during transit. However, this approach introduces potential latency and exposes network risks, requiring security measures such as custom authorizers, IP whitelisting, or mutual TLS to safeguard communications.</p><p><strong>Private integrations</strong> enable direct communication with AWS services such as S3, DynamoDB, Lambda, Kinesis Data Streams, Step Functions, SNS, SQS, and EventBridge over the AWS private network. By bypassing the public internet, private integrations ensure low latency and secure interactions, providing enhanced data privacy. This makes them particularly suitable for internal applications or workloads requiring efficient communication within the AWS infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBEeQrbX6bNstRHSHkiWlw.png" /><figcaption>api-proxy</figcaption></figure><p>In the case of API Gateway communicating with Lambda, this can be achieved using a feature called <strong>proxy integrations</strong>, where API Gateway forwards the entire incoming HTTP request to a Lambda function without modification. This includes the HTTP method, path, query parameters, headers, and body, all of which are passed to a Lambda function as part of the event object. When using a proxy integration with a Lambda function, that function must be explicitly configured to return its response in a JSON object that includes the HTTP status code, headers, and body. This structured response ensures that API Gateway can correctly interpret the output and forward it to the client in compliance with standard HTTP protocols. Proxy integrations are widely used in practice because they simplify API Gateway configurations and provide developers with full control over request handling and response generation, making them the preferred choice for many serverless applications.</p><p>By default, API Gateway routes traffic over the public internet to reach any resource that resides within a VPC. When a VPC is configured with public subnets, resources within those subnets can be accessed via public IP addresses or DNS names. API Gateway leverages this to route requests over the internet. While this setup is functional, the dependency on the public internet may introduce latency and potential security risks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EMwaIiBuEDrUG0owR2mVxQ.png" /><figcaption>api-gateway-3</figcaption></figure><p>Conversely, private subnets within a VPC are isolated from the public internet, lacking publicly routable IP addresses or DNS endpoints. As a result, API Gateway cannot directly access resources within private subnets without additional configurations. This limitation underscores the importance of implementing alternative mechanisms when private subnets are involved, particularly for applications that require secure and efficient access to isolated resources.</p><p>To overcome the challenges of accessing private subnets within a VPC, AWS offers an API Gateway-specific feature called <strong>VPC Link</strong>. This mechanism allows API Gateway to securely route requests to resources inside a VPC without traversing the public internet. By leveraging AWS’s internal network, VPC Link enables low-latency private communication, providing a seamless connection between API Gateway and private VPC resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*udDOJ8hK5okDlctSy6rYlg.png" /><figcaption>api-gateway-4</figcaption></figure><p>VPC Links support two primary target types within a VPC:</p><ol><li><strong>Interface Endpoint:</strong> A VPC Link can integrate with an <strong>Interface Endpoint</strong>, which is powered by <strong>AWS PrivateLink</strong>. PrivateLink creates elastic network interfaces (ENIs) with private IP addresses inside specific subnets in your VPC, providing a fully private entry point for traffic to AWS-managed services, SaaS services, or other PrivateLink-exposed VPC services. This architecture enables API Gateway to securely reach internal services without traversing the public internet or exposing resources externally. By leveraging PrivateLink, Interface Endpoints ensure isolated, low-latency, and secure communication for sensitive workloads that must remain entirely within the AWS network.</li><li><strong>Elastic Load Balancer (ALB or NLB): </strong>A VPC Link can route traffic to ELBs deployed in either private or public subnets; however, deploying them in public subnets is redundant and counterintuitive. These load balancers act as gateways to backend services, such as EC2 instances or containerized workloads within a VPC. Even for a single EC2 instance, an Elastic Load Balancer is required because VPC Link cannot directly connect to individual instances. When configured in private subnets, this approach ensures secure and private communication while also supporting fine-grained traffic distribution and scalability. In contrast, using a public subnet defeats the purpose of VPC Link by exposing the resources to the public internet, adding unnecessary complexity and cost without providing additional security benefits.</li></ol><p>Using a VPC Link provides a secure and efficient way for API Gateway to connect with resources in a private VPC. This setup keeps traffic within the AWS private network, removing the need for public internet routing.</p><p>While VPC Link offers significant benefits, it also comes with additional costs. These include hourly charges for active links and data transfer fees, which are separate from the costs associated with API Gateway. Furthermore, there may be extra expenses related to associated resources, such as ENIs and ELBs.</p><p>Careful planning of traffic patterns and resource utilization is essential to optimizing cost efficiency. For organizations that prioritize secure and efficient communication between API Gateway and private VPC resources, VPC Link is a crucial feature that balances technical flexibility with operational simplicity.</p><p><strong>Public endpoint approach Cost analysis:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H53JECMCvpAf-601vgefTw.png" /><figcaption>data-transfer-out-1</figcaption></figure><p>When API Gateway invokes a backend through a publicly accessible endpoint such as a public ALB, traffic exits AWS’s internal network. Even if the backend ultimately resides inside the same VPC, traffic egresses the AWS network perimeter before re-entering through the public ALB listener. This results in:</p><ol><li><strong>Data transfer out to the public internet</strong><br> • API Gateway traffic destined for a public ALB is subject to standard internet egress rates (approximately $0.09 per GB).<br> • These charges apply because the request path crosses the AWS network boundary, regardless of the resource’s location inside the VPC.</li><li><strong>No private networking hourly costs</strong><br> • Since no VPC Link or PrivateLink endpoint is provisioned, the only ongoing cost is standard API Gateway usage plus egress-related bandwidth.<br> • This can seem economical at low traffic volumes, yet becomes inefficient as throughput increases due to sustained per-GB data transfer.</li><li><strong>Operational trade-offs</strong><br> • Routing through the public internet introduces additional attack surface and variable latency.<br> • It also requires more robust perimeter controls to protect the public ALB endpoint.</li></ol><p>This option is often chosen for low-traffic workloads or early prototypes due to its minimal fixed-cost overhead.</p><p><strong>Private connectivity via VPC Link Cost analysis:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_9oqTr9qshu20e4F6a-hQ.png" /><figcaption>data-transfer-out-2</figcaption></figure><p>When converting a public ALB into a private ALB and attaching it to API Gateway through a VPC Link, traffic remains inside AWS’s private network. This eliminates internet-egress billing and improves security and latency, since requests no longer leave the AWS perimeter before returning to the VPC.</p><p>In this model, cost is driven by the number of Elastic Network Interfaces (ENIs) used by the VPC Link and the volume of data processed. Each ENI costs $0.01 per hour (approximately $7.30 per month), and data transferred through the link within the same Region is billed at $0.01 per GB.</p><p>In practice, this creates a small, predictable fixed cost and a low variable cost that scales linearly with traffic, and it does so significantly slower than routing requests through a public endpoint, which incurs standard internet-egress fees of roughly $0.09 per GB.</p><p>As throughput increases, the cost benefits of private connectivity become more pronounced. For example, at 10 TB of monthly traffic (10,240 GB), the VPC Link approach yields substantial savings compared to sending the same volume through a publicly accessible ALB. Even with multiple ENIs for availability, the private architecture remains materially more cost-efficient at scale.</p><p>In summary, VPC Link introduces a minor baseline cost while delivering lower per-GB transfer pricing and stronger security boundaries. It is ideal for workloads with consistent or high data volumes, while lower-traffic environments may still prefer the simplicity of a public ALB.</p><p><strong>Enforcing Security in API Gateway:</strong></p><p>API Gateway provides multiple mechanisms to enforce security, offering flexibility to meet a wide range of access control and monitoring requirements. These mechanisms can be used individually or in combination, depending on the specific needs of your architecture and security policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wxXmJpbqt9A6Mq1VT_mcOg.png" /></figure><p><strong>Resource-based policies</strong> specify who can access the API and under what conditions by specifying which AWS accounts, IP addresses, or VPCs are allowed to make requests. These policies are directly attached to the API Gateway resource and operate at the network level, making them ideal for scenarios requiring strict external access control based on predefined attributes like account IDs or IP ranges.</p><p><strong>IAM Authorization</strong> enforces access control by requiring API clients to sign requests with AWS credentials. It validates the requester’s identity and checks attached IAM policies to determine permissions. Unlike resource-based policies that define access at the API Gateway resource level, IAM Authorization controls access at the identity level — <em>user or role</em>. This makes it ideal for internal applications with AWS credentials. However, without additional configurations such as resource-based policies or AWS RAM, IAM Authorization is limited to users and roles within the same AWS account.</p><p><strong>Cognito Managed Authorization</strong> integrates API Gateway with a Cognito User Pool — <em>a fully managed user directory that handles user registration, authentication, and management, which will be explored in the next section</em>. This integration delegates user authentication to Cognito. API Gateway verifies <strong>Identity Tokens (JWTs)</strong> issued by the Cognito service, simplifying the implementation of user-level security.</p><p><strong>Custom Lambda Authorizers</strong> enable custom authorization logic for API Gateway requests. When a request is received, API Gateway invokes a Lambda function that evaluates specific request parameters — <em>e.g., headers, query strings, or tokens from external identity providers</em> — and returns an ‘Allow’ or “Deny” response. This flexibility makes it ideal for advanced use cases, such as integrating with third-party identity systems or implementing fine-grained access controls beyond standard mechanisms.</p><p><strong>API Usage Plans</strong> enforce access limits and quotas using API keys, which clients include in their request headers. These plans define rate limits, quotas, and throttling to ensure fair resource allocation and prevent abuse. While API keys are not standalone authentication mechanisms, they are effective for managing usage and monitoring client activity. Usage plans are often paired with other security measures to strengthen overall access control and enforce resource policies.</p><p><strong>Conclusion:</strong></p><p>In summary, AWS API Gateway functions as a comprehensive edge service for building, securing, and scaling API access across public and private environments. It supports multiple integration patterns, including direct AWS service integrations, Lambda proxy models, and private connectivity via VPC Link and PrivateLink, allowing architects to tailor request flows to security, latency, and network-isolation requirements. Careful design extends beyond security and performance: choosing private connectivity options such as VPC Link can materially reduce data transfer costs at scale compared to sending traffic through public endpoints. Effective API architecture involves selecting the appropriate integration method, applying the correct authorization model, and designing the network path to balance cost, security, and operational resilience. As distributed systems continue to mature in the cloud era, API Gateway remains central in enabling controlled, efficient, and secure communication between clients and backend services within AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=175239e97000" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Mutual TLS (mTLS) works]]></title>
            <link>https://medium.com/@matthew.sweeney001/how-mutual-tls-mtls-works-9278b27eef93?source=rss-139fcabe8972------2</link>
            <guid isPermaLink="false">https://medium.com/p/9278b27eef93</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mutual-tls]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Matthew Sweeney]]></dc:creator>
            <pubDate>Tue, 28 Oct 2025 22:24:25 GMT</pubDate>
            <atom:updated>2025-10-28T22:37:24.532Z</atom:updated>
            <content:encoded><![CDATA[<p>Mutual TLS (mTLS) is a security protocol that ensures both endpoints in a connection authenticate each other before communication begins. Unlike traditional TLS, which only validates the server’s identity to secure communication, mTLS adds an additional layer of trust by requiring both endpoints to present valid certificates during the handshake process. This mutual authentication ensures that only trusted entities can establish a connection, making it an effective method for preventing unauthorized access and ensuring secure communication between systems.</p><p><em>To fully appreciate mTLS, it is important to first understand the operation of standard TLS.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6V5QmCeb8cO83WZHzzp1A.png" /></figure><p>TLS establishes a secure communication channel by ensuring both parties share a symmetric key. This symmetric key is used to encrypt and decrypt all exchanged messages in real-time, keeping communication private between endpoints. Even if data is intercepted during transit, it cannot be read or tampered with unless the symmetric key is possessed, effectively protecting against eavesdropping. To enable this secure exchange, one endpoint must present a TLS certificate — <em>a digital file that verifies its identity and establishes trust</em>. This certificate allows the other endpoint to generate and securely transmit a symmetric key. Once the symmetric key is shared, it facilitates efficient, low-latency encryption for bidirectional communication, forming the foundation of secure internet transactions.</p><p><em>Before understanding how symmetric keys can be securely generated and shared to encrypt TLS traffic, it is important to examine the role of Certificate Authorities (CAs) and the process of issuing TLS certificates.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nP1TKpYmYg6_iPwiJnPKiw.png" /></figure><p>To establish a secure TLS communication session, a server must first possess a valid TLS certificate. Although certificates can be manually generated, they are prone to exploitation without proper verification, as malicious actors can create spoofed certificates to impersonate legitimate servers. This can enable attackers to intercept sensitive data or manipulate communications, posing significant security risks. To address this, Certificate Authorities (CAs) — <em>trusted entities responsible for validating the authenticity of TLS certificates</em> — play a pivotal role by appending their trusted digital signatures to issued certificates. These signatures, recognized globally, confirm the certificate’s legitimacy and association with the intended entity.</p><p>The process of obtaining a TLS certificate begins with a server owner generating a cryptographic key pair consisting of a public and private key. That public key, along with metadata such as the server’s domain name and the desired certificate expiration date, is submitted to a CA, which generates a certificate embedding this information. The CA computes a cryptographic hash of the certificate’s embedded contents and signs the hash using its own private key to create a digital signature. This signed certificate is then issued and stored back on the server, serving as cryptographic proof of its authenticity.</p><p><em>Now that the process of generating a TLS certificate and its contents is understood, the focus will shift to how this certificate facilitates the secure generation and transmission of symmetric keys, ultimately establishing an encrypted communication channel.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1J7OfglTtwzWBxgt1OwoQ.png" /></figure><p>The process of generating a symmetric key for secure communication begins immediately after an unencrypted connection is established. After the initial TCP handshake “<em>SYN, SYN-ACK, ACK</em>” is performed to establish the connection, the certificate holder provides its TLS certificate to the connecting system. Systems such as web browsers are designed to verify the authenticity of received certificates before proceeding with symmetric key generation. This verification process depends on a locally stored set of trusted CA public keys — <em>often referred to as a “certificate store” or “trust store”</em> — which are pre-installed and maintained by operating systems or applications. These public keys can decrypt the digital signature created by the corresponding CA’s private key, ensuring authenticity and preventing malicious interference.</p><p>Upon receiving the TLS certificate, the connecting system extracts critical certificate data, including the server’s public key and associated metadata, and proceeds to regenerate the cryptographic hash embedded within the certificate for verification. This regenerated hash is compared to the decrypted hash derived from the CA’s digital signature to validate the certificate’s authenticity. If the hashes match, the connecting system generates a unique symmetric key for encrypting all subsequent communication during the session. To securely transmit this symmetric key, it is encrypted using the public key embedded within the TLS certificate. Once the encrypted symmetric key is received, the certificate holder decrypts it using its private key. This process ensures that only authorized parties can access the symmetric key, transitioning the communication from a secure one-way exchange to a fully encrypted bidirectional communication channel.</p><p><em>Now that TLS has been broken down and understood, the focus will shift back to mTLS, which builds upon TLS principles by introducing mutual authentication between both endpoints.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IykyG8eDEj8hHXsRmLAJFA.png" /></figure><p>mTLS extends the functionality of traditional TLS by ensuring that both endpoints in a connection — <em>such as a client and server or two servers</em> — authenticate each other before secure communication is established. In standard TLS, the server presents its TLS certificate to verify its identity, while the client remains unauthenticated. mTLS adds another layer of trust by requiring both endpoints to exchange and validate TLS certificates during the handshake process. This ensures that not only is the server legitimate, but the client is also authorized to initiate communication.</p><p>During the mTLS handshake, the process begins similarly to TLS, where one endpoint requests a connection and receives a TLS certificate in response. However, in mTLS, the server also sends a request for the client’s certificate. The client responds by providing its certificate, which the server verifies using a trusted CA. Both certificates are checked for authenticity, and if validation succeeds, a symmetric key is generated and exchanged securely, just as in TLS. This process ensures that only trusted entities — <em>the initiator and the responder</em> — can participate in the communication, making mTLS an effective safeguard against unauthorized access and impersonation. By requiring mutual authentication, mTLS ensures that traffic must traverse a trusted intermediary server, making it particularly well-suited for scenarios that demand secure, verified interactions between systems, APIs, or devices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9278b27eef93" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>