If you want to deploy a static website on S3 with SSL (HTTPS) enabled, you do not need to rewrite everything from scratch.
You can refer to the detailed, step-by-step guide at the following link:
👉 Step-by-step Guide: Setting up a Static Website with SSL on S3
This article will guide you through:
Note:
You do not need to repeat steps already detailed in the linked guide. Simply follow the instructions to successfully deploy a secure static website with SSL on AWS!