Running AWS Lambda from a form post

I created a small AWMS Lambda that sends emails using SES. I am looking to link a contact form from a static website to this lambda.

Is it possible for a contact with us to send a message directly to the lambda URL? I do not use server-side frameworks and would really like to avoid this, what are my options? Is there a client side Javascript way to call lambda?

+7
javascript amazon-web-services aws-lambda
source share
1 answer

Wrote a blog post about this.

This is fully doable. It is a matter of using AWS Cognito to call this function.

The hard part ensures that the IAM settings for the Cognito group and Lambda functions are configured correctly. I used this lesson quite heavily, but I used cognito to complete it, so I did not open the keys.

http://lg.io/2015/05/16/the-future-is-now-and-its-using-aws-lambda.html

+9
source share

All Articles