This builds on the example at https://github.com/serverless/examples/tree/master/aws-node-single-page-app-via-cloudfront
- Install serverless framework.
- Initialize a serverless application
- Copy/Replace the serverless.yml with the one from this repo
- In the serverless.yml, update to the appropriate AWS region under the
sls deploy
Deploy the cloudfront distribution and bucket- Build Single page app
npm init react-app app
- Build the single page app.
cd app && npm run build
- Deploy the single page app.
aws s3 sync build/ s3://<your-bucket>
- ???
- Profit
app/
contains the single page app contentserverless.yml
contains the serverless config which creates the assets required to deliver the static site