AWS · Amazon DynamoDB · Diagram as code

AWS DynamoDB architecture diagram

Show DynamoDB as the datastore behind API Gateway and Lambda, or as a stream source for downstream processors. ArchLex checks reads, writes and streams endpoints.

Serverless CRUD on DynamoDB.

API Gateway invokes Lambda; Lambda writes the table.

AWS DynamoDB architecture diagram: API Gateway invokes Lambda which writes to a DynamoDB tableAWS DynamoDB architecture diagram: API Gateway invokes Lambda which writes to a DynamoDB table
provider aws
direction LR

api: api-gateway["API"]
fn: lambda["Writer"]
table: dynamodb["Items"]

api -[invokes]-> fn
fn -[writes]-> table

Open this diagram in the playground

DynamoDB Streams to Lambda to EventBridge.

React to table changes and publish domain events.

AWS DynamoDB architecture diagram: DynamoDB Streams to Lambda publishing to EventBridgeAWS DynamoDB architecture diagram: DynamoDB Streams to Lambda publishing to EventBridge
provider aws
direction LR

stream: dynamodb["Orders table"]
fn: lambda["Stream processor"]
bus: eventbridge["Domain events"]

stream -[streams]-> fn
fn -[publishes]-> bus

Open this diagram in the playground

Pattern notes for Amazon DynamoDB.

Placement and relationship rules ArchLex enforces for this service.

Ask an agent to draw it.

Install the ArchLex skill or connect the free MCP server, then paste this prompt.

Agent skill install
npx skills add baires/archlex
Draw an Amazon DynamoDB architecture diagram with API Gateway, Lambda writing to DynamoDB, and a Streams processor publishing to EventBridge. Validate it and give me a playground link.

Prefer MCP? Follow the MCP server guide.

Related AWS examples.

Browse all examples

Amazon DynamoDB diagram questions.

How do I show DynamoDB reads and writes?

Use -[reads]-> and -[writes]-> from compute such as lambda or ecs to dynamodb. Wrong relationship kinds return AWS-RELATIONSHIP-INVALID-ENDPOINT-001.

Can I diagram DynamoDB Streams?

Yes. dynamodb -[streams]-> lambda is a declared edge for change-data-capture style diagrams.

Does ArchLex model GSIs or capacity modes?

No. Tables are single nodes. Capture index or on-demand notes in labels if you need them on the picture.

Is DynamoDB allowed inside a VPC scope?

No. Keep it outside subnet scopes. VPC endpoints to DynamoDB can be drawn separately if you add them as their own resources.

More AWS service diagrams.

Open source · MIT licensed

Diagram Amazon DynamoDB as code.