Skip to content

Commit 5cb6cd8

Browse files
authored
Merge pull request #2524 from indranilbanerjeeawssa/main
Fixing msk-lambda-iam-python-sam and msk-lambda-iam-node-sam projects by adding Cloudformation templates as previous CFT doesn't work anymore due to Cloud9 dependency
2 parents ffd3795 + fd57c48 commit 5cb6cd8

File tree

8 files changed

+2787
-159
lines changed

8 files changed

+2787
-159
lines changed

msk-lambda-iam-node-sam/MSKAndKafkaClientEC2.yaml

Lines changed: 1267 additions & 0 deletions
Large diffs are not rendered by default.

msk-lambda-iam-node-sam/README.md

Lines changed: 132 additions & 62 deletions
Large diffs are not rendered by default.

msk-lambda-iam-node-sam/example-pattern.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"headline": "How it works",
99
"text": [
1010
"This pattern provides a Lambda function along with an Event Source Mapping to a Kafka topic.",
11-
"It requires that you already have an Amazon Managed Streaming for Kafka(Amazon MSK) cluster setup with a topic created. If you don't already have an MSK cluster ",
12-
"you can use the example in this pattern https://serverlessland.com/patterns/msk-cfn-sasl-lambda (linked in the resources) to deploy a cluster.",
11+
"It requires that you already have an Amazon Managed Streaming for Kafka(Amazon MSK) cluster setup with a Kafka topic created.",
12+
"The CloudFormation template provided in this pattern installs an MSK Cluster and creates a Kafka topic.",
1313
"This pattern works with either a Provisioned or Serverless MSK cluster as long as the cluster is configured to use IAM authentication. ",
14-
"For detailed deployment instructions instructions see the README "
14+
"For detailed deployment instructions instructions see the README.md"
1515
]
1616
},
1717
"gitHub": {
@@ -24,10 +24,6 @@
2424
},
2525
"resources": {
2626
"bullets": [
27-
{
28-
"text": "Amazon MSK Cluster pattern",
29-
"link": "https://serverlessland.com/patterns/msk-cfn-sasl-lambda"
30-
},
3127
{
3228
"text": "Using AWS Lambda with Amazon MSK",
3329
"link": "https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"
@@ -58,6 +54,11 @@
5854
]
5955
},
6056
"authors": [
57+
{
58+
"name": "Indranil Banerjee",
59+
"bio": "AWS - Senior Solutions Architect",
60+
"linkedin": "https://www.linkedin.com/in/indranil-banerjee-b00a261/"
61+
},
6162
{
6263
"name": "Vaibhav Jain",
6364
"bio": "AWS - Sr. Application Architect",
@@ -70,7 +71,7 @@
7071
"image": "https://www.fintail.me/images/pa.jpg",
7172
"linkedin": "https://www.linkedin.com/in/pallam/"
7273
},
73-
{
74+
{
7475
"name": "Suraj Tripathi",
7576
"bio": "AWS - AppDev Cloud Consultant",
7677
"linkedin": "https://www.linkedin.com/in/suraj-tripathi-01b49a140/"
@@ -79,11 +80,6 @@
7980
"name": "Adam Wagner",
8081
"bio": "AWS - Principal Serverless Solutions Architect",
8182
"linkedin": "https://www.linkedin.com/in/adam-wagner-4bb412/"
82-
},
83-
{
84-
"name": "Indranil Banerjee",
85-
"bio": "AWS - Senior Solutions Architect",
86-
"linkedin": "https://www.linkedin.com/in/indranil-banerjee-b00a261/"
8783
}
8884
]
8985
}

msk-lambda-iam-node-sam/template.yaml renamed to msk-lambda-iam-node-sam/template_original.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Resources:
1717
Properties:
1818
CodeUri: HandlerKafka/
1919
Handler: app.handler
20-
Runtime: nodejs18.x
20+
Runtime: NODEJS_VERSION
2121
Architectures:
2222
- x86_64
2323
Events:
@@ -71,12 +71,15 @@ Parameters:
7171
MSKClusterName:
7272
Type: String
7373
Description: Enter the name of the MSK Cluster
74+
Default: CLUSTER_NAME
7475
MSKClusterId:
7576
Type: String
7677
Description: Enter the ID of the MSK Cluster
78+
Default: CLUSTER_ID
7779
MSKTopic:
7880
Type: String
7981
Description: Enter the name of the MSK Topic
82+
Default: KAFKA_TOPIC
8083
Outputs:
8184
LambdaMSKConsumerNodeJSFunction:
8285
Description: "Topic Consumer Lambda Function ARN"

0 commit comments

Comments
 (0)