So before I begin full on coding going down the wrong path, I'm looking into Angular Universal be the SSR and reading on AWS docs to do it. The SSR is mainly for speed and for Googlebot/SEO.
I am reading the white paper here:
AWS Serverless Multi-Tier Architectures with Amazon API Gateway and AWS Lambda
I love this approach but I am missing two things in the diagram that I need research on:
- I want to have my own auth with AWS Cognito (and maybe a third-party identity manager like Google or GiHub added latter)
- Where does the SSR pages go?
The AWS docs I've read say push it to AWS Lambda with the AWS CLI which includes some TS files (lambda.ts) and such.
- does this make the bucket obsolete and not used for the SPA?
- can Webpack be used in any way in this AWS methodology to make things easier?
Side note: I haven't use AWS in this full capacity yet and trying to figure out how to integrate the enviornment I want based on my needs outlined above.

ng add @nguniversal/express-enginenot work? Also do you need to pass data to angular during SSR?