Skip to main content

AWS Lambda Publish Sharable Events

Build status Code Coverage Package version Python version

Features

  • Publish your locally defined test events to the Lambda Console (publish-shared-event -e testEvent.json ..)
  • Publish 100 different examples (publish-shared-event -e ses/ses.json ...)
  • Publish multiple events with the same schema structure for a single Lambda
  • Set test name or use the test event file name (publish-shared-event -n custom-name ...)
  • Get the list of built-in test events (publish-shared-event --list)
  • Geneate a new test event (generate-test-event ses/ses.json > event.json)

Installation

Recommended to install via pipx: pipx install aws-lambda-publish-shared-event, see the pipx installation guide for more.

Alternatively pip installed, run: pip install aws-lambda-publish-shared-event

Usage

Once installed run publish-shared-event --help for the list of commands.

Listing supported events for cognito user pool:

$ 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

Publishes a locally defined test event events/yourOwnDefinedEvent.json to the Lambda console

publish-shared-event -e events/yourOwnDefinedEvent.json -f your-function -r us-west-2

Publish two different tests with custom names.

NOTE: Both tests must share the same schema

publish-shared-event -n createCustomerPass -e eventOne.json -f full-lambda-name -r us-east-1
publish-shared-event -n createCustomerFailure -e eventTwo.json -f full-lambda-name -r us-east-1

Using the 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
    ...

Generate new local test event:

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

Resources

See Lambda Events for more documentation on the different AWS Lambda event structures and see the official docs on AWS Lambda Shareable test events.

Recent changes

0.20.0

  • Bump dep pick to 2.2.0

0.19.0

  • Bump deps

0.18.0

  • Bump deps
  • Version command

0.17.0

  • Bump deps for pick to 1.4.0

0.16.0

  • Bump deps for pick to 1.3.0

0.15.0

  • Add --filtered-list argument to generate-test-event

0.14.0

  • Add alexa-skills-kit sample events

0.13.0

  • Fix packaging to include generate_test_event

0.12.0

  • Add generate-test-event support
  • Add python 3.7 support

0.11.0

  • Add support for python 3.8

0.10.0

  • Add python 3.10 and dependabot
  • Add security and linting
  • Add coverage report

0.9.0

  • Add long form cli arguments (--region, --lambda-name, --event-name)

0.8.0

  • Update dependencies and clean up code

Release files for aws-lambda-publish-shared-event 0.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-lambda-publish-shared-event 0.20.0
File Size Uploaded
aws-lambda-publish-shared-event-0.20.0.tar.gz 45.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-lambda-publish-shared-event 0.20.0
File Interpreter ABI Platform
aws_lambda_publish_shared_event-0.20.0-py3-none-any.whl Python 3 none any Details

Total release size: 152.0 kB

Release files / aws-lambda-publish-shared-event-0.20.0.tar.gz

Download URL aws-lambda-publish-shared-event-0.20.0.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2b169ba3872c607ac0afbd5870effdc95df502ef3263c12c8182c6b71ae79236
BLAKE2b-256 checksum
How to use checksums
bce64cb9f2cd7ae8117d0000fc749e36994611934bdc548e1438ed9cd9491b94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release files / aws_lambda_publish_shared_event-0.20.0-py3-none-any.whl

Download URL aws_lambda_publish_shared_event-0.20.0-py3-none-any.whl
Size 107.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50dbe29fdb4673687286afebf9c8d7f3e49b012f0730608460839a5b1d4a573b
BLAKE2b-256 checksum
How to use checksums
3a08393344affb06145ceeeea2d3a54b27e6a348a4ad1383e8776a64c92b99d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.9

Release history Release notifications | RSS feed

This release

0.20.0 This release

2 release files

0.18.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page