Best Way to do Form HTTP Posts to API Gateway From a Static S3 Website

Hello,

I built a static website using Gatsby. The website has a form that takes name/email/message and posts to API gateway which saves into DynamoDB. I don’t think I need to go the Cognito route because I’m not doing any login activity.

What’s the best and secure way to accomplishing this?

like this https://github.com/DavidWells/davidwells.io/tree/master/backend/contact-form =)

1 Like

this is the frontend code: https://github.com/DavidWells/davidwells.io/blob/master/src/pages/Contact/index.js#L26-L30

The form will ping the lambda and send an email via AWS SNS

1 Like