Menu Close

How to deploy a website using serverless architecture?

How to deploy a website using serverless architecture?

How to deploy a website with AWS S3 + CloudFront using CloudFormation?

After making the backend serverless, it’s time for the frontend to go serverless.

So, why do we go serverless or say what are the benefits?

  • Get rid of server management and code deployment stuff
  • Pay for what you use
  • Infinite scaling

This article will show you how to deploy a website using AWS S3, CloudFront, and CloudFormation.



Table of contents

  1. Add IAM permissions
  2. Create an S3 bucket and upload the code
  3. Create OriginAccessControl(OAC)
  4. Configure CloudFront
  5. Update the S3 bucket policy
  6. Point the domain to CloudFront
  7. FAQs

For detailed implementation, check out our blog.

View Source
Posted in web development