AWS · AWS Lambda · Diagram as code

AWS Lambda architecture diagram

Describe Lambda handlers, their triggers, and the data stores they read and write in plain text. ArchLex checks every connection against the AWS catalog, then renders a clean SVG with official icons.

HTTP API to Lambda to DynamoDB.

The classic serverless request path: API Gateway invokes a function that writes to DynamoDB.

AWS Lambda architecture diagram: API Gateway invokes a Lambda order handler that writes to a DynamoDB Orders tableAWS Lambda architecture diagram: API Gateway invokes a Lambda order handler that writes to a DynamoDB Orders table
provider aws
direction LR

api: api-gateway["HTTP API"]
fn: lambda["Order handler"]
db: dynamodb["Orders"]

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

Open this diagram in the playground

EventBridge to SQS to Lambda.

Decouple producers with a bus and a queue, then let Lambda process messages asynchronously.

AWS Lambda architecture diagram: EventBridge publishes to an SQS queue that invokes a Lambda processorAWS Lambda architecture diagram: EventBridge publishes to an SQS queue that invokes a Lambda processor
provider aws
direction LR
validation normal

bus: eventbridge["Orders bus"]
queue: sqs["Order queue"]
fn: lambda["Processor"]

bus -[publishes]-> queue
queue -[invokes]-> fn

Open this diagram in the playground

Pattern notes for AWS Lambda.

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 AWS Lambda architecture diagram with API Gateway invoking a Lambda function that writes to DynamoDB. Validate it with ArchLex and give me a playground link.

Prefer MCP? Follow the MCP server guide.

Related AWS examples.

Browse all examples

AWS Lambda diagram questions.

Can ArchLex draw an AWS Lambda architecture diagram as code?

Yes. Write the Lambda function and its triggers or stores in ArchLex, validate against the AWS catalog, and render SVG with the official Lambda icon. Open the same source in the playground to edit it.

Which services can invoke Lambda in ArchLex?

Declared invokes/triggers sources include api-gateway, sqs, eventbridge, eventbridge-scheduler, s3, sns, and step-functions. Targets for Lambda writes include dynamodb, s3, and rds.

Does ArchLex verify my Lambda IAM role?

No. It validates declared resources and relationship endpoints in the diagram. It does not inspect IAM policies, environment variables, or deployed function configuration.

How do I open this Lambda diagram in the playground?

Use the Open in Playground button on this page. It deep-links to playground.archlex.dev with the ArchLex source in the code query parameter so you can edit and re-render immediately.

More AWS service diagrams.

Open source · MIT licensed

Diagram AWS Lambda as code.