Cli to publish shareable lambda test events.
Project description
AWS Lambda Publish Sharable Events
Installation
With pip installed, run: pip install aws-lambda-publish-shared-event
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
)
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
...
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for aws-lambda-publish-shared-event-0.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66c19f6d50f9804de38b6a294d0418a32620a5b0f70b17bdd4433d8f0c43c245 |
|
MD5 | 2d33ad427dd1e9515f1788b92b58cc08 |
|
BLAKE2b-256 | 1576a2254f33509c8fe004572e4e03bb9e3e9f03399566ff11b4400a27b2290d |
Hashes for aws_lambda_publish_shared_event-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da410e96f65d4e586fe6a357bab9a081257c4df260a226c8fd6bae8d1940850a |
|
MD5 | a10fa7a8f9c7d3c1a554f625a8795fef |
|
BLAKE2b-256 | e926a622991ca35eb310eaf4212fe19f4c206d9ef6eb00c96838c5f76d350437 |