Skip to content

Commit 015b84c

Browse files
committed
Update patterns
1 parent ebadd96 commit 015b84c

File tree

4 files changed

+88
-320
lines changed

4 files changed

+88
-320
lines changed

documentdb-lambda-java-sam/documentdb-lambda-java-sam.json

Lines changed: 0 additions & 125 deletions
This file was deleted.
Lines changed: 80 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,90 @@
11
{
2-
"title": "AWS Lambda function subscribed to an Amazon DocumentDB Change Streams (Java)",
3-
"description": "Creates a Lambda function that uses an Amazon DocumentDB Change Streams as an event source.",
4-
"language": "Java",
5-
"level": "200",
6-
"framework": "AWS SAM",
7-
"introBox": {
8-
"headline": "How it works",
9-
"text": [
10-
"This pattern provides a Lambda function along with an Event Source Mapping to a DocumentDB Change Stream.",
11-
"The CloudFormation template provided in this pattern installs a DocumentDB Cluster and creates a database and a collection. It also enabled change streams on the created database and collection",
12-
"For detailed deployment instructions instructions see the README.md"
13-
]
14-
},
15-
"gitHub": {
16-
"template": {
17-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/documentdb-lambda-java-sam",
18-
"templateURL": "serverless-patterns/documentdb-lambda-java-sam/documentdb_streams_consumer_dynamo_sam",
19-
"projectFolder": "documentdb-lambda-java-sam",
20-
"templateFile": "template_original.yaml"
21-
}
22-
},
23-
"resources": {
24-
"bullets": [
25-
{
26-
"text": "Process Amazon DocumentDB events with Lambda",
27-
"link": "https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html"
28-
},
29-
{
30-
"text": "Using AWS Lambda with change streams",
31-
"link": "https://docs.aws.amazon.com/documentdb/latest/developerguide/using-lambda.html"
32-
},
33-
{
34-
"text": "Amazon DocumentDB quick start using AWS CloudFormation",
35-
"link": "https://docs.aws.amazon.com/documentdb/latest/developerguide/quick_start_cfn.html"
36-
},
37-
{
38-
"text": "AWS CloudFormation DocumentDB cluster reference",
39-
"link": "https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-docdb-dbcluster.html"
40-
}
41-
]
42-
},
43-
"deploy": {
44-
"text": [
45-
"sam deploy --guided"
46-
]
47-
},
48-
"testing": {
49-
"text": [
50-
"See the GitHub repo for detailed testing instructions."
51-
]
52-
},
53-
"cleanup": {
54-
"text": [
55-
"Delete the template: <code>sam delete</code>."
56-
]
57-
},
58-
"authors": [
59-
{
60-
"name": "Indranil Banerjee",
61-
"bio": "AWS - Senior Solutions Architect",
62-
"image": "https://media.licdn.com/dms/image/v2/C5603AQEL3BG6JZca6A/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1653972622784?e=1762992000&v=beta&t=a9gnmtxyWBhfEfqDF3HiPHWDoc4KZjG2sdNsIakcJXw",
63-
"linkedin": "https://www.linkedin.com/in/indranil-banerjee-b00a261/"
64-
},
2+
"title": "Amazon DocumentDB streams consumer",
3+
"description": "Consume Amazon DocumentDB stream records with AWS Lambda.",
4+
"language": "Java",
5+
"level": "200",
6+
"framework": "AWS SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"This pattern demonstrates consuming Amazon DocumentDB stream records with an AWS Lambda function.",
11+
"The CloudFormation template provided in this pattern creates an Amazon DocumentDB Cluster and database with a collection. It also enables change streams on the database and collection, and creates an Amazon EC2 instances for accessing the Amazon DocumentDB cluster.",
12+
"For detailed deployment instructions instructions see the README.md"
13+
]
14+
},
15+
"gitHub": {
16+
"template": {
17+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/documentdb-lambda-java-sam",
18+
"templateURL": "serverless-patterns/documentdb-lambda-java-sam/documentdb_streams_consumer_dynamo_sam",
19+
"projectFolder": "documentdb_streams_consumer_dynamo_sam",
20+
"templateFile": "template_original.yaml"
21+
}
22+
},
23+
"resources": {
24+
"bullets": [
6525
{
66-
"name": "Arghya Banerjee",
67-
"bio": "AWS - Senior Solutions Architect",
68-
"image": "https://media.licdn.com/dms/image/v2/C5603AQHFFKivT-1iKA/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1516305772138?e=1762992000&v=beta&t=dKgoxEfgZd3M5XW-GEJ9Ss4I5ka8-C7iEIy8Sb_PTOQ",
69-
"linkedin": "https://www.linkedin.com/in/arghya-b-6130b57/"
26+
"text": "Process Amazon DocumentDB events with Lambda",
27+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html"
7028
},
7129
{
72-
"name": "Kunal Ghosh",
73-
"bio": "AWS - Sr SA, Strategic Accounts",
74-
"image": "https://media.licdn.com/dms/image/v2/C5603AQHrj7mHd7Z1hg/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1516355158121?e=1762992000&v=beta&t=8h0cpHLR6v4-e3BJ7n9Wd_OHL2rRDa8F_74rTUnu8Js",
75-
"linkedin": "https://www.linkedin.com/in/kunal-ghosh-6583058/"
76-
},
77-
{
78-
"name": "Angelo Spagnolo",
79-
"bio": "AWS - Sr Technical Account Manager",
80-
"image": "https://media.licdn.com/dms/image/v2/D5603AQFQj2a90KFFZQ/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1692659294509?e=1762992000&v=beta&t=gEfdRLVzNPXGZ9-5EZKA358NBf4F7VBcVthyWSrzjrs",
81-
"linkedin": "https://www.linkedin.com/in/aspagnolo/"
30+
"text": "Using AWS Lambda with change streams",
31+
"link": "https://docs.aws.amazon.com/documentdb/latest/developerguide/using-lambda.html"
8232
},
8333
{
84-
"name": "Vinayak Datar",
85-
"bio": "AWS - Sr. Customer Solutions Manager",
86-
"image": "https://media.licdn.com/dms/image/v2/C5103AQFAa6JcLNknkA/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1548189034877?e=1762992000&v=beta&t=o2lDqU3V4ivFjt00rEDYd2yjGr55TszcG0J9hGuRM_w",
87-
"linkedin": "https://www.linkedin.com/in/vinayakdatar/"
34+
"text": "Amazon DocumentDB quick start using AWS CloudFormation",
35+
"link": "https://docs.aws.amazon.com/documentdb/latest/developerguide/quick_start_cfn.html"
8836
},
8937
{
90-
"name": "Greg Medard",
91-
"bio": "AWS - Solutions Architect",
92-
"image": "https://media.licdn.com/dms/image/v2/C4E03AQGveSDnRH9aCg/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1565226836063?e=1762992000&v=beta&t=Jkir-cq-T1EU8MTqY7PPPxreVo2_zI4FXaXXrdTdpfQ",
93-
"linkedin": "https://www.linkedin.com/in/gregorymedard/"
38+
"text": "AWS CloudFormation DocumentDB cluster reference",
39+
"link": "https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-docdb-dbcluster.html"
9440
}
9541
]
96-
}
97-
42+
},
43+
"deploy": {
44+
"text": ["sam deploy --guided"]
45+
},
46+
"testing": {
47+
"text": ["See the GitHub repo for detailed testing instructions."]
48+
},
49+
"cleanup": {
50+
"text": ["Delete the template: <code>sam delete</code>."]
51+
},
52+
"authors": [
53+
{
54+
"name": "Indranil Banerjee",
55+
"bio": "AWS - Senior Solutions Architect",
56+
"image": "https://media.licdn.com/dms/image/v2/C5603AQEL3BG6JZca6A/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1653972622784?e=1762992000&v=beta&t=a9gnmtxyWBhfEfqDF3HiPHWDoc4KZjG2sdNsIakcJXw",
57+
"linkedin": "https://www.linkedin.com/in/indranil-banerjee-b00a261/"
58+
},
59+
{
60+
"name": "Arghya Banerjee",
61+
"bio": "AWS - Senior Solutions Architect",
62+
"image": "https://media.licdn.com/dms/image/v2/C5603AQHFFKivT-1iKA/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1516305772138?e=1762992000&v=beta&t=dKgoxEfgZd3M5XW-GEJ9Ss4I5ka8-C7iEIy8Sb_PTOQ",
63+
"linkedin": "https://www.linkedin.com/in/arghya-b-6130b57/"
64+
},
65+
{
66+
"name": "Kunal Ghosh",
67+
"bio": "AWS - Sr SA, Strategic Accounts",
68+
"image": "https://media.licdn.com/dms/image/v2/C5603AQHrj7mHd7Z1hg/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1516355158121?e=1762992000&v=beta&t=8h0cpHLR6v4-e3BJ7n9Wd_OHL2rRDa8F_74rTUnu8Js",
69+
"linkedin": "https://www.linkedin.com/in/kunal-ghosh-6583058/"
70+
},
71+
{
72+
"name": "Angelo Spagnolo",
73+
"bio": "AWS - Sr Technical Account Manager",
74+
"image": "https://media.licdn.com/dms/image/v2/D5603AQFQj2a90KFFZQ/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1692659294509?e=1762992000&v=beta&t=gEfdRLVzNPXGZ9-5EZKA358NBf4F7VBcVthyWSrzjrs",
75+
"linkedin": "https://www.linkedin.com/in/aspagnolo/"
76+
},
77+
{
78+
"name": "Vinayak Datar",
79+
"bio": "AWS - Sr. Customer Solutions Manager",
80+
"image": "https://media.licdn.com/dms/image/v2/C5103AQFAa6JcLNknkA/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1548189034877?e=1762992000&v=beta&t=o2lDqU3V4ivFjt00rEDYd2yjGr55TszcG0J9hGuRM_w",
81+
"linkedin": "https://www.linkedin.com/in/vinayakdatar/"
82+
},
83+
{
84+
"name": "Greg Medard",
85+
"bio": "AWS - Solutions Architect",
86+
"image": "https://media.licdn.com/dms/image/v2/C4E03AQGveSDnRH9aCg/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1565226836063?e=1762992000&v=beta&t=Jkir-cq-T1EU8MTqY7PPPxreVo2_zI4FXaXXrdTdpfQ",
87+
"linkedin": "https://www.linkedin.com/in/gregorymedard/"
88+
}
89+
]
90+
}

lambda-durable-order-processing-sam/example-pattern.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"title": "Order Processing Workflow with Lambda Durable Functions",
3-
"description": "Production-ready 17-step order processing workflow using Lambda Durable Functions with automatic checkpointing, long-running waits, and state persistence",
2+
"title": "Order Processing with AWS Lambda durable functions",
3+
"description": "Order processing workflow using Lambda durable functions with automatic checkpointing, long-running waits, and state persistence",
44
"language": "Node.js",
55
"level": "300",
66
"framework": "AWS SAM",
77
"introBox": {
88
"headline": "How it works",
99
"text": [
10-
"This pattern demonstrates a production-ready order processing workflow with 17 steps using Lambda Durable Functions.",
10+
"This pattern demonstrates an order processing workflow using Lambda durable functions.",
1111
"The workflow includes validation, payment processing, fraud checks, credit checks (for high-value orders), inventory management, and shipping coordination.",
1212
"Durable execution enables long-running waits (5 minutes for warehouse processing, 3 minutes for carrier pickup) without consuming compute resources.",
1313
"Each step is automatically checkpointed, allowing the workflow to survive interruptions and resume from the last successful step.",
1414
"The pattern uses a dual-function architecture: async durable function for order processing and sync non-durable function for real-time status queries.",
15-
"Order state is persisted in DynamoDB with real-time status updates throughout the 17-step workflow."
15+
"Order state is persisted in Amazon DynamoDB with real-time status updates throughout the 17-step workflow."
1616
]
1717
},
1818
"gitHub": {
@@ -26,7 +26,7 @@
2626
"resources": {
2727
"bullets": [
2828
{
29-
"text": "Lambda Durable Functions Documentation",
29+
"text": "Lambda durable functions Documentation",
3030
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
3131
},
3232
{
@@ -41,21 +41,17 @@
4141
},
4242
"deploy": {
4343
"text": [
44-
"Note: Lambda Durable Functions are currently available in us-east-2 (Ohio) region only.",
44+
"Note: Lambda durable functions are currently available in us-east-2 (Ohio) region only.",
4545
"cd src && npm install && cd ..",
4646
"sam build",
4747
"sam deploy --guided --region us-east-2"
4848
]
4949
},
5050
"testing": {
51-
"text": [
52-
"See the GitHub repo for detailed testing instructions."
53-
]
51+
"text": ["See the GitHub repo for detailed testing instructions."]
5452
},
5553
"cleanup": {
56-
"text": [
57-
"Delete the stack: <code>sam delete --region us-east-2</code>."
58-
]
54+
"text": ["Delete the stack: <code>sam delete --region us-east-2</code>."]
5955
},
6056
"authors": [
6157
{

0 commit comments

Comments
 (0)