Serverless Static Websites on AWS

Serverless Static Websites on AWS

1h 31mIntermediate2020-03-05

Authors

Brett McLaughlin

Brett McLaughlin

Chief Technology Officer at Volusion

Course details

AWS and cloud computing are arguably the most important paradigm shifts for developers in the last 10 years. And as the technology grows more sophisticated, it's important for developers to evolve to understand the cloud as a fundamentally different way to host applications and websites. Rather than building a website in a traditional manner—with traditional headaches and costs—developers need to easily and correctly be able to determine when to use Amazon Simple Storage Service (Amazon S3) as a hosting mechanism.

In this course, instructor Brett McLaughlin shows developers how to make the switch to serverless, explaining how to take a website and convert it from a traditional site—whether it's running on premises or in the cloud—to a serverless site. In about two hours, Brett steps through how to host a simple static website, configure CloudWatch to monitor your S3-hosted static website, use dashboards to get a quick look at how your site is doing, and more.

Skills covered

S3Amazon Web Services (AWS)AmazonCloud ServicesProjectCloud PlatformsCloud Computing

Concepts

Introduction

  • Websites without servers in two hours
  • Why is serverless such a hot topic

Moving from Servers to a Serverless Architecture

  • S3 as a website hosting mechanism
  • Buckets and servers don't cost the same!
  • Look at a serverless website architecture

Hosting a Simple Static Website

  • Manage website requests with S3 bucket names
  • Set up the folder structure for your website
  • Set up an S3 bucket to hosting a website
  • Setting a policy for your S3 bucket
  • Upload your site to S3
  • Point a domain at your site with Route53
  • Redirect www requests to your site
  • Challenge - Add new pages to your website
  • Solution - Add new pages to your website

Monitoring an S3-Hosted Static Website

  • Configure CloudWatch for basic monitoring
  • Keep up with your website logs
  • Dashboards are your monitoring best friend
  • Challenge - Add widgets to your monitoring dashboard
  • Solution - Add widgets to your monitoring dashboard

What's Next for a Serverless Static Website

  • Good monitoring is rarely basic monitoring
  • Static sites can become dynamic sites
  • Keeping your free site free

Conclusion

  • Hosting dynamic content
40,000 Toman