Skip to content

General Resources

Some general resources around AWS Lambda event requests and responses.

Libraries by language

List of general resources that could be used with all AWS Lambda by language.

Lambda shareable test events

With AWS Lambda Shareable test events you can now share test events with other AWS Lambda developers.

Installing the cli publish-shared-event tool.

Recommended to install via pipx, see the pipx installation guide for more.:

pipx install aws-lambda-publish-shared-event

Examples of running the cli tool.

Generates a new local test event:

generate-test-event ses/ses.json > event.json

Running as an interactive cli tool:

$ publish-shared-event
Lambda Name: <Full Lambda Name>
Select Event:
* alb/alb.json
    alexa/alex-smart-home-skill-v1.json
    alexa/alex-smart-home-skill-v3.json
    amazon-config/amazon-config.json
    ...

Listing all the cognito user pull events:

$ publish-shared-event --filtered-list cognito-user
Filtered list of supported event sources:
cognito-user-pool/create-auth-challenge.json
cognito-user-pool/custom-email-sender.json
cognito-user-pool/custom-message.json
cognito-user-pool/define-auth-challenge.json
cognito-user-pool/post-authentication.json
cognito-user-pool/post-confirmation.json
cognito-user-pool/pre-authentication.json
cognito-user-pool/pre-signup.json
cognito-user-pool/pre-token-generation.json
cognito-user-pool/user-migration.json
cognito-user-pool/verify-auth-challenge-response.json

Publishing a ses/ses.json test event as a shareable event for the Lambda function named full-lambda-name

publish-shared-event -e ses/ses.json -f full-lambda-name -r us-east-1

Last update: 2022-09-13