How I Learned Website Hosting with Amazon S3
As a student, I have worked with simple HTML and CSS websites. I wanted to understand what happens after creating a website and how cloud computing can help make it accessible.
While learning AWS, I came across Amazon S3, which helped me understand the basics of cloud storage and static website hosting.
What is Amazon S3?
Amazon S3 stands for Amazon Simple Storage Service. It is an object storage service provided by AWS.
We can store files such as:
These files are stored as objects inside S3 buckets.
For example, a simple website could contain:
index.html
style.css
script.js
images/
These files can be stored in an S3 bucket.
Understanding Website Hosting
A simple static website can be represented as:
Website Files
↓
Amazon S3
↓
Website
↓
User
For a more complete architecture, CloudFront can be used with S3:
User → CloudFront → Amazon S3 → Website Files
CloudFront can help deliver content securely using HTTPS.
A Simple Example
A basic HTML page could look like this:
<!DOCTYPE html>
<html>
<head>
<title>My AWS Website</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This website is hosted using AWS.</p>
</body>
</html>
The index.html file can be used as the index document for a static website.
What I Learned
Before exploring S3, I mainly thought of cloud storage as a place to store files online.
Now I understand that S3 can also become part of a larger cloud architecture.
I learned about:
I also learned that security is important. We should understand bucket permissions and avoid exposing sensitive files publicly.
What I Want to Try Next
I would like to create a personal portfolio website using S3 and explore CloudFront in more detail.
This would be a good way for me to combine web development with AWS.
Conclusion
Learning about Amazon S3 gave me a simple introduction to cloud storage and website hosting.
It helped me connect something familiar, like an HTML website, with AWS cloud services. I hope to use these concepts in my future projects.
Loading article