S3 - Create a static website

 S3 - Create a static website


Creating static website with S3 bucket is very easy. This will make not only your website fast but also hassle-free and cheap alternative to traditional hosting.

  1. Please read this post before going further -  https://www.learn-aws.com/2024/11/s3.html
  2.  Create a bucket and set the permissions.
  3.  Click on the bucket, and navigate to the "Properties" tab, scroll down you will see this option.





  4. Edit it like below.




  5. Create a simple index.html file like the one below and upload it with the files you used in index file. In this case "aws.png" is also uploaded into the bucket as well.

    <html>

    <title> Hello from AWS S3 </title>
    <body>

    <img src="aws.png" alt="AWS">


    </body>

    </html>


  6.  If we do everything right, we will be able to see rendered html when we copy and paste the link in the index file's link in S3 service.



Comments

Popular posts from this blog

AWS - Databases DynamoDB, RDS

S3