Skip to content

Commit 092779d

Browse files
Adds AWS Lambda to the pattern catalog.
1 parent 70c8369 commit 092779d

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

dsl/patterns/aws-lambda/example-1.dsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ workspace extends https://docs.structurizr.com/dsl/patterns/workspace.dsl {
1515

1616
deploymentNode "Developer Laptop" {
1717
deploymentNode "LocalStack" {
18-
deploymentNode "Lamba Service" {
18+
deploymentNode "Lambda Service" {
1919
deploymentNode "Java Virtual Machine" {
2020
instanceOf ss.orderHandler
2121
}

dsl/patterns/aws-lambda/index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: default
3+
title: AWS Lambda
4+
parent: Pattern catalog
5+
grand_parent: DSL
6+
permalink: /dsl/patterns/aws-lambda/
7+
---
8+
9+
# Amazon Web Services Lambda
10+
11+
## Example 1
12+
13+
### Container view
14+
15+
Model the handler as a container. If the handler code does not have a dependency on `com.amazonaws:aws-lambda-java-core`, the technology of the handler can be just `Java`.
16+
17+
[![](example-1-1.png)](https://playground.structurizr.com?src=https://docs.structurizr.com/dsl/patterns/aws-lambda/example-1.dsl&view=Containers)
18+
19+
### Deployment view - development
20+
21+
In the development deployment environment, model the local services as a collection of nested deployment nodes. This example includes the Java Virtual Machine that the handler runs inside, but you can omit this for a simpler diagram.
22+
23+
[![](example-1-2.png)](https://playground.structurizr.com?src=https://docs.structurizr.com/dsl/patterns/aws-lambda/example-1.dsl&view=Deployment-Development)
24+
25+
### Deployment view - live
26+
27+
In the live deployment environment, model the AWS services as a collection of deployment nodes.
28+
29+
[![](example-1-3.png)](https://playground.structurizr.com?src=https://docs.structurizr.com/dsl/patterns/aws-lambda/example-1.dsl&view=Deployment-Live)

0 commit comments

Comments
 (0)