npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

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

About

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

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

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

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

Open Software & Tools

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

© 2026 – Pkg Stats / Ryan Hefner

dynamodb-zero-etl-s3tables

v0.1.7

Published

AWS CDK L3 construct that creates a complete zero-ETL integration from Amazon DynamoDB to Amazon S3 Tables (Apache Iceberg)

Readme

dynamodb-zero-etl-s3tables

npm version PyPI version NuGet version License: MIT jsii stability: experimental

An AWS CDK L3 construct that wires up a complete zero-ETL integration from Amazon DynamoDB to Amazon S3 Tables (Apache Iceberg) — in a single line of code.

Zero-ETL eliminates the need to build and maintain ETL pipelines. Data flows automatically from your DynamoDB table into Iceberg tables on S3, ready for analytics with Athena, Redshift, EMR, and more.

Why this construct?

Setting up DynamoDB zero-ETL to S3 Tables manually requires 7+ resources across DynamoDB, S3 Tables, IAM, Glue, and custom resources — each with specific permissions, dependencies, and ordering constraints. One misconfigured policy and the integration silently fails.

This construct handles all of that for you:

┌──────────────┐         ┌──────────────────┐         ┌─────────────────┐
│              │         │                  │         │                 │
│   DynamoDB   │────────▶│  AWS Glue        │────────▶│  S3 Tables      │
│   Table      │  zero   │  Integration     │  write  │  (Iceberg)      │
│              │  ETL    │                  │         │                 │
└──────────────┘         └──────────────────┘         └─────────────────┘
       │                        │                            │
       ▼                        ▼                            ▼
  Resource Policy          Catalog Policy              Table Bucket
  (Glue export)            (Custom Resource)           IAM Target Role

What gets created:

| Resource | Purpose | |----------|---------| | AWS::S3Tables::TableBucket | Iceberg-native storage for your analytics data | | AWS::IAM::Role | Least-privilege role for Glue to write to S3 Tables and catalog | | AWS::Glue::Integration | The zero-ETL integration connecting source to target | | AWS::Glue::IntegrationResourceProperty | Wires the target IAM role to the integration | | Custom::AWS (AwsCustomResource) | Sets the Glue Data Catalog resource policy (no CloudFormation support) | | DynamoDB Resource Policy | Allows Glue to export and describe the source table |

Installation

TypeScript/JavaScript:

npm install dynamodb-zero-etl-s3tables

Python:

pip install dynamodb-zero-etl-s3tables

Java (Maven):

<dependency>
    <groupId>io.github.leeroyhannigan</groupId>
    <artifactId>dynamodb-zero-etl-s3tables</artifactId>
</dependency>

.NET:

dotnet add package LeeroyHannigan.CDK.DynamoDbZeroEtlS3Tables

Quick Start

import { DynamoDbZeroEtlToS3Tables } from 'dynamodb-zero-etl-s3tables';
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb';

const table = new dynamodb.Table(this, 'Table', {
  tableName: 'Orders',
  partitionKey: { name: 'PK', type: dynamodb.AttributeType.STRING },
  sortKey: { name: 'SK', type: dynamodb.AttributeType.STRING },
  billingMode: dynamodb.BillingMode.PAY_PER_REQUEST,
  pointInTimeRecovery: true,
});

new DynamoDbZeroEtlToS3Tables(this, 'ZeroEtl', {
  table,
  tableBucketName: 'orders-iceberg-bucket',
});

That's it. Your DynamoDB data will automatically replicate to Iceberg tables on S3.

Props

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | table | dynamodb.Table | Yes | — | DynamoDB table with an explicit tableName and PITR enabled | | tableBucketName | string | Yes | — | Name for the S3 Table Bucket | | integrationName | string | No | 'ddb-to-s3tables' | Name for the Glue zero-ETL integration |

Exposed Properties

All key resources are exposed as public properties for extension:

| Property | Type | Description | |----------|------|-------------| | tableBucket | s3tables.CfnTableBucket | The S3 Table Bucket for Iceberg storage | | targetRole | iam.Role | The IAM role Glue uses to write to the target | | integration | glue.CfnIntegration | The Glue zero-ETL integration |

Customization Examples

Add custom permissions to the target role

const zeroEtl = new DynamoDbZeroEtlToS3Tables(this, 'ZeroEtl', {
  table,
  tableBucketName: 'my-bucket',
});

zeroEtl.targetRole.addToPolicy(new iam.PolicyStatement({
  actions: ['s3:GetObject'],
  resources: ['arn:aws:s3:::my-other-bucket/*'],
}));

Configure Iceberg file maintenance

zeroEtl.tableBucket.unreferencedFileRemoval = {
  status: 'Enabled',
  unreferencedDays: 10,
  noncurrentDays: 30,
};

Tag the integration

zeroEtl.integration.tags = [
  { key: 'Environment', value: 'production' },
  { key: 'Team', value: 'analytics' },
];

Prerequisites

Your DynamoDB table must have:

  1. An explicit tableName — auto-generated names (CloudFormation tokens) are not supported. The construct validates this at synth time.
  2. Point-in-time recovery (PITR) enabled — required by the zero-ETL integration for data export. The construct validates this at synth time.

If either requirement is not met, the construct throws a descriptive error during synthesis.

How It Works

  1. S3 Table Bucket is created as the Iceberg-native target for your data
  2. IAM Role is created with least-privilege permissions for S3 Tables, Glue Catalog, CloudWatch, and Logs
  3. DynamoDB Resource Policy is set on your table, allowing the Glue service to export data
  4. Glue Catalog Resource Policy is applied via a custom resource (CloudFormation doesn't support this natively)
  5. Integration Resource Property wires the IAM role to the target catalog
  6. Glue Integration is created, connecting your DynamoDB table to the S3 Tables catalog

All resources are created with correct dependency ordering to ensure a successful single-deploy experience.

Querying Your Data

Once the integration is active, your DynamoDB data is available as Iceberg tables. Query with Amazon Athena:

SELECT * FROM "s3tablescatalog/my-bucket"."namespace"."table_name" LIMIT 10;

Security

  • All IAM permissions follow least-privilege principles
  • S3 Tables permissions are scoped to the specific bucket and sub-resources
  • Glue catalog permissions are scoped to the account's catalog and databases
  • DynamoDB resource policy uses aws:SourceAccount and aws:SourceArn conditions
  • CloudWatch metrics are conditioned on the AWS/Glue/ZeroETL namespace

Contributing

Contributions, issues, and feature requests are welcome!

License

This project is licensed under the MIT License.

Author

Lee HanniganGitHub