|
| 1 | +{ |
| 2 | + "title": "Amazon SQS to Amazon DynamoDB via Amazon EventBridge Pipes using CDK/Python", |
| 3 | + "description": "Send messages from an SQS queue to a DynamoDB table via API Gateway using EventBridge Pipes. Implemented with CDK/Python.", |
| 4 | + "language": "Python", |
| 5 | + "level": "300", |
| 6 | + "framework": "AWS CDK", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "Messages sent to the Amazon SQS queue are polled by Amazon EventBridge Pipe.", |
| 11 | + "Amazon EventBridge Pipe processes the messages and sends them to the Amazon API Gateway endpoint.", |
| 12 | + "Amazon API Gateway transforms the message and writes the data to the Amazon DynamoDB table using direct integration." |
| 13 | + ] |
| 14 | + }, |
| 15 | + "gitHub": { |
| 16 | + "template": { |
| 17 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/eventbridge-pipes-sqs-to-dynamodb", |
| 18 | + "templateURL": "serverless-patterns/eventbridge-pipes-sqs-to-dynamodb", |
| 19 | + "projectFolder": "eventbridge-pipes-sqs-to-dynamodb", |
| 20 | + "templateFile": "eventbridge_pipes_sqs_to_dynamodb/eventbridge_pipes_sqs_to_dynamodb.py" |
| 21 | + } |
| 22 | + }, |
| 23 | + "services": { |
| 24 | + "from": { |
| 25 | + "serviceName": "Amazon SQS", |
| 26 | + "serviceURL": "/sqs/" |
| 27 | + }, |
| 28 | + "to": { |
| 29 | + "serviceName": "Amazon DynamoDB", |
| 30 | + "serviceURL": "/dynamodb/" |
| 31 | + } |
| 32 | + }, |
| 33 | + "patternArch": { |
| 34 | + "icon1": { |
| 35 | + "x": 10, |
| 36 | + "y": 50, |
| 37 | + "service": "sqs", |
| 38 | + "label": "Amazon SQS" |
| 39 | + }, |
| 40 | + "icon2": { |
| 41 | + "x": 37, |
| 42 | + "y": 50, |
| 43 | + "service": "eventbridge", |
| 44 | + "label": "EventBridge Pipes" |
| 45 | + }, |
| 46 | + "icon3": { |
| 47 | + "x": 63, |
| 48 | + "y": 50, |
| 49 | + "service": "apigw", |
| 50 | + "label": "API Gateway" |
| 51 | + }, |
| 52 | + "icon4": { |
| 53 | + "x": 90, |
| 54 | + "y": 50, |
| 55 | + "service": "dynamodb", |
| 56 | + "label": "DynamoDB" |
| 57 | + }, |
| 58 | + "line1": { |
| 59 | + "from": "icon1", |
| 60 | + "to": "icon2" |
| 61 | + }, |
| 62 | + "line2": { |
| 63 | + "from": "icon2", |
| 64 | + "to": "icon3" |
| 65 | + }, |
| 66 | + "line3": { |
| 67 | + "from": "icon3", |
| 68 | + "to": "icon4" |
| 69 | + } |
| 70 | + }, |
| 71 | + "resources": { |
| 72 | + "bullets": [ |
| 73 | + { |
| 74 | + "text": "Amazon SQS Developer Guide", |
| 75 | + "link": "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html" |
| 76 | + }, |
| 77 | + { |
| 78 | + "text": "Amazon EventBridge Pipes Documentation", |
| 79 | + "link": "https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-event-source.html" |
| 80 | + }, |
| 81 | + { |
| 82 | + "text": "AWS CloudFormation API for Pipes", |
| 83 | + "link": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pipes-pipe.html" |
| 84 | + }, |
| 85 | + { |
| 86 | + "text": "Amazon EventBridge Pipes CDK v2 Python Reference", |
| 87 | + "link": "https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_pipes/CfnPipe.html" |
| 88 | + }, |
| 89 | + { |
| 90 | + "text": "Amazon API Gateway DynamoDB Integration", |
| 91 | + "link": "https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-overview-developer-experience.html" |
| 92 | + } |
| 93 | + ] |
| 94 | + }, |
| 95 | + "deploy": { |
| 96 | + "text": ["cdk deploy"] |
| 97 | + }, |
| 98 | + "testing": { |
| 99 | + "text": ["See the README in the GitHub repo for detailed testing instructions."] |
| 100 | + }, |
| 101 | + "cleanup": { |
| 102 | + "text": ["Delete the stack: <code>cdk destroy</code>."] |
| 103 | + }, |
| 104 | + "authors": [ |
| 105 | + { |
| 106 | + "name": "Michele Scarimbolo", |
| 107 | + "image": "https://avatars.githubusercontent.com/u/229997073", |
| 108 | + "bio": "Technical Account Manager at AWS. Serverless specialist and enthusiast.", |
| 109 | + "linkedin": "michele-scarimbolo", |
| 110 | + "twitter": "" |
| 111 | + } |
| 112 | + ], |
| 113 | + "patternType": "Serverless" |
| 114 | +} |
0 commit comments