- Create an AWS s3 bucket (the bucket should be used as a website host)
- Create a role allowing Lambda Execution and Comprehend Medical
- Create a lambda function with node.js environment and attach the role.
- Paste the lambda code to the function
- Create an API (REST)
- Create method post / for the API, enable CORS and deploy it
- Paste the API endpoint as a second argument to the submitData function in form.js (line 69)
- npm i, in your local environment
- npm run build, in your local environment
- Upload the contents of the build directory into the bucket.
- Use the application with your IAM access key ID and access key secret (It is recomended to use 'us-east-1' as your region)