Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



46 Commits

Repository files navigation

Cloud Convex Hull Web App

Serverless convex hull service implemented on AWS cloud

This is a web application built with various serverless AWS components for ECE465. The overarching goal was to learn more about how to build an application deeply integrated with cloud technologies in a practical way.

This application is a simple web-app that allows you to upload a 3D model .obj file, and calculates the convex hull using @markus-wa/quickhull-go. The website is built using the Vue 3 framework and uses THREE.js for 3D visualzation. This is statically hosted in an S3 bucket (the "website bucket"). The files for the convex hull operation are stored in another bucket (the "uploads bucket"). A user may trigger the upload of a 3D model or the calculation of its convex hull, via a request to the REST API interface created with API Gateway, which calls the lambda integration of the same name.

In the time provided, I was unable to build a full-scale web-application with user/identity support (via AWS Cognito) or database storage (via RDS). AWS Educate also does not support Route 53 nor Cloudfront, so they were also not implemented in the final solution.

For a future iteration, a higher-level website-building service, such as Lightsail, CloudFormation, or Amplify may be much more efficient, since there was a lot of (repetitive) setup for all the permissions to be correct. However, it was a good learning experience to try to set up these serverless components without one of these higher-level services.

See presentation slide deck here.

See video presentation here.

Build and install into AWS cloud

See and


Architecture diagram

  1. Access to uploads bucket by presigned URLs only.
  2. Appopriate CORS headers for website use.
  3. Presign lambda has read access to uploads bucket.
  4. Convex hull lambda has GET/PUT access to uploads bucket.
  5. Presign endpoint calls presign lambda.
  6. Convex hull endpoint calls convex hull lambda.
  7. API Gateway stage has logging set up. 8 Each lambda has logging set up (to different loggroups).
  8. Lambdas need access to uploads bucket.
  9. Route 53 acts as a DNS server.
  10. Cloudfront acts as a CDN for the website, uploads bucket, API Gateway, and authorization page. It also supports HTTPS (necessary for Cognito).
  11. Cognito authorizes API requests using the users access token.
  12. Authorization lambda verifies the user's access token.
  13. Listmodels endpoint calls listmodels lambda.
  14. Listmodels lambda retrieves models entries from database.
  15. New model lambda creates new model entry in database.
  16. Listmodels/Newmodel lambdas require permissions for RDS.
  17. On new upload (PUT request) or creation of a hull (a new model), newmodel lambda will trigger.

Structure of this repository

  • assets/: AWS architecture diagram
  • aws_res/: AWS policy files for deploy scripts
  • res/: sample files for test usage (e.g., .obj 3D model files)
  • scripts/: Makefile subscripts for AWS deployment
  • src/:
  • Makefile: top-level Makefile and configuration
  • build instructions and prerequisites
  • instructions to deploy to AWS cloud
  • this file

*: These files were used when I was testing convex hull, but are not part of the serverless web-app.


Convex hull serverless web app implemented on AWS






No releases published


No packages published