- 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
)
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
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
See Lambda Events for more documentation on the different AWS Lambda event structures and see the official docs on AWS Lambda Shareable test events.
- Bump deps
- Bump dep pick to 2.2.0
- Bump deps
- Bump deps
- Version command
- Bump deps for pick to 1.4.0
- Bump deps for pick to 1.3.0
- Add
--filtered-list
argument togenerate-test-event
- Add
alexa-skills-kit
sample events
- Fix packaging to include
generate_test_event
- Add
generate-test-event
support - Add python 3.7 support
- Add support for python 3.8
- Add python 3.10 and dependabot
- Add security and linting
- Add coverage report
- Add long form cli arguments (
--region
,--lambda-name
,--event-name
)
- Update dependencies and clean up code