aws-cdk.aws-dynamodb
The CDK Construct Library for AWS::DynamoDB
What it is and what it does
aws-cdk.aws-dynamodb is a construct library for AWS CDK v1 that lets you define DynamoDB tables, indexes, and configurations in Python code rather than through CloudFormation templates or the AWS console. It wraps the underlying AWS resources and provides a high-level API for common patterns: creating tables with partition and sort keys, choosing billing modes (provisioned or on-demand), setting up autoscaling policies, configuring encryption with customer-managed or AWS-managed keys, and enabling global table replication across regions. You can also import existing tables by ARN or name and grant IAM permissions to users and roles.
The package depends on other AWS CDK modules and uses jsii for language binding. It is classified as inactive because AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer receiving updates. Users building new infrastructure should use AWS CDK v2 instead; this package is maintained only for existing v1 deployments.
Use it for:
- Define a new DynamoDB table with partition key and billing mode in a CDK stack without writing CloudFormation YAML
- Set up autoscaling policies to adjust read/write capacity based on utilization or time-of-day schedules
- Create a global DynamoDB table replicated across multiple AWS regions with a single construct call
- Import an existing DynamoDB table by ARN and grant read-write permissions to an IAM user or role
- Configure table encryption with a customer-managed KMS key and enable key rotation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides AWS CDK constructs for defining, configuring, and deploying Amazon DynamoDB tables as infrastructure code, including autoscaling, global replication, encryption, and stream integration.
No—not for new projects. This package is end-of-support as of 2023-06-01 and AWS CDK v1 is no longer being updated. Existing v1 deployments may continue to work, but new infrastructure should use AWS CDK v2 instead. If you are maintaining legacy v1 code, the low install friction and permissive license make it safe to keep, but migration is strongly recommended.
Install
aws-cdk-aws-dynamodb on PyPI
pip
pip install aws-cdk-aws-dynamodbuv
uv add aws-cdk-aws-dynamodbpoetry
poetry add aws-cdk-aws-dynamodbInstalling aws-cdk.aws-dynamodb
Before you install
Low installation friction with a wheel distribution. However, this is an end-of-support package as of 2023-06-01; AWS CDK v1 is no longer being updated and users are advised to migrate to AWS CDK v2.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
from aws_cdk import aws_dynamodb as dynamodb
table = dynamodb.Table(self, "Table",
partition_key=dynamodb.Attribute(name="id", type=dynamodb.AttributeType.STRING)
)
AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer being updated; migration to AWS CDK v2 is recommended.
Verify before relying
- Whether migration tooling from v1 to v2 is straightforward for existing deployments using this package
- Current adoption rate among active CDK users and whether v1 packages remain functional in production
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (~=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — aws-cdk.aws-applicationautoscaling, aws-cdk.aws-cloudwatch, aws-cdk.aws-iam, aws-cdk.aws-kinesis, aws-cdk.aws-kms, aws-cdk.aws-lambda, aws-cdk.core, aws-cdk.custom-resources, constructs, jsii, publication, typeguard |
| Maintenance | actively maintained — 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 150,281/month — #10,968 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_cdk.aws_dynamodb-1.204.0-py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
aws-cdk.aws-ecrProvides AWS CDK constructs for defining,…
permissive · top 15,000 on PyPI
aws-cdk.aws-kinesisDefines AWS Kinesis data streams as…
permissive · top 15,000 on PyPI
aws-cdk.aws-applicationautoscalingProvides CDK constructs for configuring…
permissive · top 15,000 on PyPI
dynamodb-encryption-sdkEncrypts and decrypts DynamoDB items…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3tables-alphaProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-secretsmanagerAWS CDK construct library for provisioning and…
permissive · top 15,000 on PyPI
aws-cdk.aws-kinesisfirehose-alphaProvides AWS CDK constructs for defining Amazon…
permissive · top 15,000 on PyPI
aws-cdk.aws-kmsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI
aws-cdk.aws-s3Defines AWS S3 buckets and related resources as…
permissive · top 15,000 on PyPI
aws-cdk.aws-ecsProvides AWS CDK constructs for defining and…
permissive · top 15,000 on PyPI