Amazon S3 Tables with dbt: Iceberg-based data transformations using AWS Glue | Amazon Web Services

The Evolution of Cloud Data Storage
For years, the industry relied on standard Amazon S3 object storage for data lakes, which, while highly scalable and cost-effective, often struggled with complex data updates and consistent record management. The introduction of Amazon S3 Tables addresses these historical challenges by providing a managed service for storing tabular data with built-in Apache Iceberg support. Iceberg’s table format allows for high-performance SQL queries and, crucially, supports row-level updates and deletes.
With the release of dbt-glue adapter version 1.12.4, developers can now utilize these capabilities directly within their dbt projects. This integration allows for incremental data processing, significantly reducing the compute overhead associated with full-table refreshes in large-scale datasets. By offloading these tasks to AWS Glue interactive sessions, organizations can process massive volumes of data using Spark SQL without needing to manage the underlying infrastructure cluster, balancing simplicity with the raw power of distributed computing.
Strategic Implementation: Merge vs. Append
A critical component of this architecture is the dual approach to incremental data modeling. In modern analytics, data teams often require two distinct views of reality: the current state and the historical progression.
The merge strategy, implemented in models like fact_orders, ensures that the data lake maintains the most current version of a record. When new data arrives—such as an order status update—the system performs a MERGE INTO operation, updating the existing row in place. This is essential for operational reporting, where stakeholders require the most recent, accurate snapshot of business metrics.
Conversely, the append strategy, used in fact_order_history, provides an audit-friendly mechanism. Instead of overwriting old records, every change is logged as a new entry. This creates a time-series view of data, which is invaluable for regulatory compliance, data lineage tracking, and trend analysis. By enabling both strategies simultaneously within a single S3 Tables-backed architecture, AWS provides a flexible framework that caters to both real-time operational needs and long-term analytical depth.
Technical Architecture and Workflow
The transformation pipeline follows a clear, layered progression. Raw data, typically ingested as CSV files, lands in a standard S3 bucket. From there, dbt orchestrates the transformation into a staging layer, where data is cleansed and standardized. Finally, this cleaned data is moved into a mart layer consisting of S3 Tables.
Behind the scenes, the dbt-glue adapter acts as the bridge. It compiles dbt models into Spark SQL statements and submits them to AWS Glue. The Glue environment then executes these operations against the S3 Tables catalog. This modularity ensures that the consumption layer—comprised of tools like Amazon Athena and Amazon QuickSight—always queries a highly optimized, Iceberg-formatted dataset. The result is a seamless flow from raw, disparate files to structured, business-ready insights.
Operational Prerequisites and Configuration
Adopting this architecture requires a disciplined approach to environment setup. Organizations must configure their AWS infrastructure, including specific S3 table buckets and namespaces, while ensuring that the dbt-glue adapter is correctly mapped to these resources. The configuration in the dbt_project.yml file is particularly critical, as it defines the materialization strategies for the tables.

In a typical production environment, developers must specify file formats, compression codecs (such as Snappy for optimized storage), and the underlying Iceberg properties. By utilizing the +file_format: 's3tables' directive, the dbt-glue adapter instructs the Glue engine to handle the underlying Iceberg metadata, ensuring that data consistency is maintained even during high-concurrency write operations.
Data Validation and Incremental Testing
The effectiveness of this system is best observed during the update cycle. In a hypothetical ecommerce scenario, source data is subject to constant change. When an update to a customer profile or an order status is pushed to the raw bucket, the dbt project is triggered to run an incremental update.
Because the system uses S3 Tables, it avoids the "write amplification" problem common in traditional data lakes. Instead of rewriting an entire partition to update a single record, the system performs a surgical update. During the testing phase, developers can confirm these results by comparing the state of the table before and after the dbt run. Using Amazon Athena, analysts can run standard SQL queries to verify that the fact_orders table correctly reflects the latest status, while fact_order_history contains the full chronological record of changes.
Broader Implications for the Data Landscape
The implications of this integration extend beyond simple efficiency gains. By standardizing on Iceberg via S3 Tables, organizations are effectively future-proofing their data architecture. The separation of storage and compute remains, but with the added benefit of a standardized open-table format that mitigates vendor lock-in.
Furthermore, the integration of dbt—the industry standard for analytics engineering—with AWS-native infrastructure allows for a "DataOps" approach. Data pipelines are no longer "black boxes" that require manual intervention; they are code-based, version-controlled assets. This visibility allows teams to catch errors earlier, automate testing, and maintain documentation as part of the development lifecycle.
Challenges and Future Considerations
While the combination of dbt-glue and S3 Tables offers significant advantages, it is not without its caveats. As of late 2026, the S3 Tables support in the dbt-glue adapter is still classified as experimental. This suggests that while the performance gains and structural improvements are clear, enterprises should exercise caution before deploying this architecture into mission-critical production environments without rigorous stress testing.
Furthermore, the management of AWS Glue interactive sessions requires careful cost management. While Glue provides a scalable serverless environment, inefficient SQL queries or overly frequent pipeline runs can lead to unexpected billing spikes. Organizations should implement monitoring and alerting mechanisms, potentially utilizing AWS Cost Explorer to track the spend associated with Glue DPU (Data Processing Unit) usage.
Conclusion and Looking Ahead
The path toward a true "lakehouse" architecture is becoming increasingly clear. By leveraging the power of Apache Iceberg through Amazon S3 Tables and the orchestration capabilities of dbt, businesses can bridge the gap between raw data storage and actionable intelligence. The ability to perform both merge and append operations within a single, unified environment is a major leap forward for data teams seeking to balance operational speed with historical accuracy.
As the ecosystem matures, we can expect deeper integration between these tools, potentially including enhanced metadata management, improved query optimization, and more automated lifecycle management for tables. For now, the dbt-glue adapter remains a critical tool for those looking to implement modern, reliable, and scalable data transformation pipelines within the AWS ecosystem. By adhering to the principles of modular design, incremental updates, and automated validation, organizations can build a foundation that supports the next generation of data-driven decision-making.







