Adding Server-side rendering and AWS Cognito Identity to an Angular Single Page Application

0

I am learning how to do serverless single page applications in AWS for all the great scalable services. The white pager docs I am following is from here: https://docs.aws.amazon.com/whitepapers/latest/serverless-multi-tier-architectures-api-gateway-lambda/single-page-application.html

The link above has a diagram outlining the services needed. It is missing the two parts I need to figure out:

  1. Where do I place my SSR / Angular Universal information/pages? Is there docs showing that in a diagram/white-paper like this?
  2. How do I add in AWS Cognito as my identity manager as I don't need to add in third-party ones yet (like GitHub or Google)?

Thanks in advance and greatly looking forward to building a serverless, scalable app in AWS infrastructure with Angular.

1回答
0

Hi,

As per the architecture diagram, it would be best to put static files (HTML, CSS, JS) in S3 with CloudFront. You could use API Gateway with Lambda for dynamic content.

You could probably follow this workshop for your use case https://webapp.serverlessworkshops.io/

Sri

profile picture
Sri
回答済み 2年前
  • Yes I have done that tutorial but the use case I am using is Angular for my SPA. Currently Ampulify does not support Angular SSR and that is a priority.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ