I'm trying to come up with a solution for deploying multiple Single Page Apps to S3 with CloudFront.
I currently have 3 SPA's
- app SPA
- signup SPA
- admin SPA
Ideally these would be served at
- myproduct.com
- myproduct.com/signup
- myproduct.com/admin
In order to facilitate independ deploys of these applications i'd like to host them in separate buckets (with separate CloudFront distributions) to make deploys safer and faster.
I was imagining something like this:
*Bucket name*
root -> has dns for myproduct.com
/signup -> serves s3://signup
/onboarding -> serves s3://onboarding
/admin -> serves s3://admin
signup
onboarding
admin
Is there any recommended s3 configuration that would accomplish a setup described above?