Proof of Concept showing how you can use AWS Lambda URLs to accept form input from a website
- Ensure you have Node.js 14 or Node.js 16 installed on your machine
- Ensure you have the AWS CLI installed on your machine
- Configure a terminal session with AWS programmatic credentials
- Install this repo's dependencies
npm ci
- Run the CDK's boostrap command to ensure you AWS account is configured correctly
npx cdk boostrap
- Deploy the AWS resources
npm run deploy
- At the end of the deploy there will be outputs, one will be called
PocStack.FormHandlerUrlOutput
. Take the URL next to it and use that as the value of theaction
attribute inpublic/index.html
. - Start the demo HTTP server then open the demo website in your browser.
npm run serve