This is a library of sample event payloads for AWS Lambda.
They're the same ones that you will find as templates for test events in the AWS Lambda console, but putting them in this repo might make them slightly easier to access.
Browse the list of JSON files below, or use them NPM package to use them directly in your tests:
npm install -D lambda-sample-events
const events = require('lambda-sample-events');
const myPayload = events['s3-put'];
console.log(myPayload);
- API Gateway AWS Proxy
- API Gateway Authorizer
- API Gateway Http API
- API Gateway Request Authorizer
- AppSync
- Application Load Balancer
- Batch Get Job
- Batch Submit Job
- CloudFormation Create Request
- CloudFront A/B Test
- CloudFront Access Request in Response
- CloudFront HTTP Redirect
- CloudFront Modify QueryString
- CloudFront Modify Response Header
- CloudFront Multiple Remote Calls Aggregate Response
- CloudFront Normalize Querystring
- CloudFront Redirect Unauthenticated Users
- CloudFront Redirect on Viewer Country
- CloudFront Response Generation
- CloudFront Serve Object on Viewer Device
- CloudFront Simple Remote Call
- CloudWatch
- Cloudwatch Logs
- CodeCommit Repository
- CodePipeline Job
- Cognito Sync Trigger
- Config Configuration Item Change Notification
- Config Oversized Configuration Item Change Notification
- Config Periodic Rule
- Connect Contact Flow
- Data Firehose Streams as Source
- DynamoDB Update
- Kinesis Data Analytics Compressed
- Kinesis Data Analytics DynamoDB
- Kinesis Data Analytics KPL
- Kinesis Data Analytics
- Kinesis Data Firehose Apachelog
- Kinesis Data Firehose Cloudwatch Logs Processor
- Kinesis Data Firehose Syslog
- Kinesis Data Firehose
- Kinesis Data Stream
- Rekognition S3 Request
- S3 Batch Operations Invocation
- S3 Delete
- S3 Put
- SES Email Receiving
- SNS Topic Notification
- SQS
- SageMaker Ground Truth AnnotationConsolidation
- SageMaker Ground Truth PreHumanTask
- StepFunctions Error
- Work Mail
- Lex Book Car
- Lex Book Hotel
- Lex Make Appointment
- Lex Order Flowers
- Lex V2 Banking Bot
- Lex V2 Book Car
- Lex V2 Book Hotel
- Alexa End Session
- Alexa Intent Answer
- Alexa Intent GetNewFact
- Alexa Intent MyColorIs
- Alexa Intent Recipe
- Alexa Smart Home Control Turn Off Request
- Alexa Smart Home Control Turn On Request
- Alexa Smart Home Discovery Request
- Alexa Start Session
Sample event payloads are copyright Amazon Web Services.