Overview
TheDynamoDBTable construct creates an Amazon DynamoDB table with sensible defaults for serverless workloads. It supports on-demand and provisioned billing, global secondary indexes, streams, and point-in-time recovery.
Import
Basic Usage
Using the Database Factory
The recommended way to add DynamoDB to a Fjall application is through theDatabaseFactory:
Properties
Key Types
Attribute types map to DynamoDB types:Methods
Examples
Composite Key Table
Table with Global Secondary Index
Provisioned Throughput
With DynamoDB Streams
TTL for Automatic Expiry
Connecting to Compute
Grant permissions to Lambda or ECS services:CloudFormation Outputs
Each DynamoDB table exports:Next Steps
Database Factory
Create databases via the factory pattern
Lambda Function
Process DynamoDB streams with Lambda