Skip to content

Serverless function which submits information to an email api. Written with the intention of being hosted on AWS lambda

Notifications You must be signed in to change notification settings

michaelCaleyWhaley/lambdaFormSubmit

Repository files navigation

lambdaFormSubmit

Serverless function which submits information to an email api. Written with the intention of being hosted on AWS lambda

Deployment

Function is deployed on merge to master via github actions.

Documentation for AWS cli docs (used to deploy) can be found Here

Example query

'{ "name": "Michael", "email": "[email protected]", "telephone": "07757770889", "inquiry": "Install", "emailDest": "default" } '

Testing

Jest tests run live submissions to valid email inbox. To test you must first set secret env variables using .env file.

Notes on lambda

Lambda functions require the async keyword in order to return a value. It's not too clear from AWS docs but it appears that the only way to return a value outside of using async keyword is to use the callback parameter. Docs

About

Serverless function which submits information to an email api. Written with the intention of being hosted on AWS lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published