In the Deploying a single-page application recipe, we covered the steps required to serve a single-page application from an S3 bucket. It is great fun to watch the light bulb turn on in an architect's mind when he or she realizes that such a simple deployment process can deliver so much scalability. Here is a recent quote from one of my customers—That's it? No really, that's it? In this recipe, we take this process one step further and demonstrate how easily we can add a CloudFront Content Delivery Network (CDN) layer in front of S3 to avail ourselves of even more valuable features.
Serving a single-page application from a CDN
How to do it...
- Create the project from the following template:
$ sls create...