tmokmss / deploy-static-web-frontend-with-cdk

2 stars 0 forks source link

Build and Deploy web frontend static assets with AWS CDK

There are three patterns demonstrated in this code.

  1. Deploy backend first, then build frontend locally
  2. Fetch variables on runtime
  3. Build frontend on deploy time

    See cdk/lib/cdk-stack.ts for the CDK code.

Pattern #2 requires specific implementation in frontend code. See frontend-runtime-config for how environment variables are fetched on runtime.

Slides

This repository is a demo used on CDK Day 2023 "Deploy web frontend apps with AWS CDK". See the recording or slides below:

Recording | Slides