Skip to content

Commit

Permalink
Create pattern.json
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojahn authored Dec 17, 2024
1 parent e84eb39 commit 6e45f48
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions iot-lambda-pub-receiver-cdk/pattern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"title": "AWS Lambda to AWS IoT Core",
"description": "Create a Lambda publishing into IoT topic, triggering an action calling another Lambda.",
"language": "Python",
"level": "200",
"framework": "CDK",
"introBox": {
"headline": "How it works",
"text": [
"This sample project demonstrates how to use an AWS Lambda Function to publish messages into AWS IoT Core topic and get a rule triggered by a condition to to forward and process relevant messages into a second Lambda. This pattern is leveraging CloudWatch logs to ease the debugging and visibility into the processed messages.",
"The function are written in Python and the infrastructure is described with AWS CDK v2 in Typescript. The patterns also shows an effective way to manage Python dependencies through Docker built image and requiements.txt file."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sfn-athena-cdk-python",
"templateURL": "serverless-patterns/sfn-athena-cdk-python",
"projectFolder": "iot-lambda-pub-receiver-cdk",
"templateFile": "lambda-iot-cdk-stack.ts"
}
},
"resources": {
"bullets": [
{
"text": "AWS IoT Core - Getting started with AWS IoT Core tutorials",
"link": "https://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html"
},
{
"text": "AWS IoT Core action resources",
"link": "https://docs.aws.amazon.com/iot/latest/developerguide/iot-action-resources.html"
},
{
"test": "Building Lambda with Python",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html"
},
{
"text": "Working with the AWS CDK in TypeScript",
"link": "https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-typescript.html"
}
]
},
"deploy": {
"text": [
"cdk deploy"
]
},
"testing": {
"text": [
"See the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>cdk destroy</code>."
]
},
"authors": [
{
"name": "Philippe Wanner",
"image": "https://serverlessland.com/assets/images/resources/contributors/philippe-wanner.jpg",
"bio": "Philippe is a Senior Specialist Solutions Architect at Amazon Web Services based in Zurich, Switzerland. His role is to spread the migration and modernization best practices for large organisations.",
"linkedin": "philippe-wanner"
}
],
"patternArch": {
"icon1": {
"x": 20,
"y": 50,
"service": "lambda",
"label": "AWS Lambda"
},
"icon2": {
"x": 50,
"y": 50,
"service": "iot",
"label": "AWS IoT Core"
},
"icon3": {
"x": 80,
"y": 50,
"service": "lambda",
"label": "AWS Lambda"
},
"line1": {
"from": "icon1",
"to": "icon2",
"label": ""
},
"line2": {
"from": "icon2",
"to": "icon3",
"label": ""
}
}
}

0 comments on commit 6e45f48

Please sign in to comment.