Skip to content

A functioning sample of using MassTransit with an AWS Lambda function

Notifications You must be signed in to change notification settings

MassTransit/Sample-LambdaFunction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

MassTransit Lambda Demo

This repository shows a functioning lambda project.

Requirements

The amazon lambda tools. Tested with 5.1.2

dotnet tool install -g Amazon.Lambda.Tools

Instructions

  1. Load your AWS keys into your environment
  2. dotnet lambda deploy-function -pl src/amzn

Valid Message Body

{
  "Records": [
    {
      "messageId": "19dd0b57-b21e-4ac1-bd88-01bbb068cb78",
      "receiptHandle": "MessageReceiptHandle",
      "body": "{}",
      "attributes": {
        "ApproximateReceiveCount": "1",
        "SentTimestamp": "1523232000000",
        "SenderId": "123456789012",
        "ApproximateFirstReceiveTimestamp": "1523232000001"
      },
      "messageAttributes": {},
      "md5OfBody": "{{{md5_of_body}}}",
      "eventSource": "aws:sqs",
      "eventSourceARN": "arn:aws:sqs:us-east-1:123456789012:MyQueue",
      "awsRegion": "us-east-1"
    }
  ]
}

About

A functioning sample of using MassTransit with an AWS Lambda function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages