Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A Quiz
🔍 Overview
In this chapter, we’ll put AWS into action. You’ve
learned the theory and explored the core services—now it’s time to build
real-world projects step-by-step using the AWS Free Tier. This chapter is
designed for absolute beginners to deploy cloud infrastructure confidently
using the AWS Management Console and AWS CLI.
You’ll learn to:
🖥️ 1. Launching a
Virtual Server Using EC2
✅ Steps:
✅ Connect to EC2 via Terminal
bash
ssh
-i MyKeyPair.pem ec2-user@<Public-IP>
Step |
Tool |
Notes |
Launch EC2 |
AWS Console |
Choose Free Tier AMI |
Connect to EC2 |
Terminal/Putty |
SSH key file
needed |
Install Apache |
EC2 CLI |
sudo yum install -y
httpd |
🌐 2. Hosting a Static
Website on S3
✅ Create S3 Bucket:
✅ Upload Files:
✅ Set Bucket Policy:
json
{
"Version": "2012-10-17",
"Statement": [{
"Sid":
"PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action":
"s3:GetObject",
"Resource":
"arn:aws:s3:::my-website-demo/*"
}]
}
Step |
Purpose |
Static hosting
enabled |
Turns S3 into website
host |
Public access unblocked |
Allows file
visibility |
Bucket policy added |
Grants public read permissions |
🧮 3. Creating a MySQL
Database with RDS
✅ Steps:
✅ Connect to RDS:
Install a MySQL client and run:
bash
mysql
-h your-db-endpoint.rds.amazonaws.com \
-u admin -p
Create a table:
sql
CREATE
DATABASE demo;
USE
demo;
CREATE
TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255)
);
Feature |
Value |
DB Engine |
MySQL |
Free Tier Instance |
db.t2.micro |
Storage |
20 GB |
Backup |
7-day default |
⚡ 4. Deploying a Simple Lambda
Function
✅ Create a Lambda Function:
Paste the code:
python
def
lambda_handler(event, context):
return {
'statusCode': 200,
'body': 'Hello from Lambda!'
}
✅ Test the Function:
Component |
Value |
Runtime |
Python 3.10 |
Trigger |
Manual (Test
event) |
Output |
200 + Hello message |
🔐 5. Creating IAM Users
and Roles
✅ Create a User:
✅ Create Role:
Feature |
Value |
IAM User |
Developer |
IAM Role |
Lambda-S3-Read |
Policies |
AmazonS3FullAccess /
ReadOnly |
📈 6. Monitoring with
CloudWatch
✅ Set Up a CloudWatch Alarm:
✅ View Lambda Logs:
Component |
Use Case |
Alarm |
Auto-restart EC2
instance alert |
Logs |
Debug Lambda
functions |
Metrics |
Monitor RDS/EC2/Lambda
usage |
📋 Summary Table –
First-Time Deployments
Service |
Action |
Outcome |
EC2 |
Launch virtual machine |
Web server, SSH access |
S3 |
Host static
site |
Public site
with HTML/CSS |
RDS |
Launch MySQL database |
Cloud-managed SQL
database |
Lambda |
Create
serverless function |
Event-based
code execution |
IAM |
Secure user/role
access |
Permission-based
access control |
CloudWatch |
Monitor and
log activity |
Alerts,
dashboards, log storage |
🏁 Final Thoughts
You’ve just completed your first hands-on experience with
AWS. From launching servers and databases to running serverless code and
monitoring resources, you've touched nearly every part of a scalable
application architecture.
Next, you can connect these services into a full-stack app
or automate them with AWS CloudFormation or CDK.
Answer:
AWS (Amazon Web Services) is a cloud computing platform that provides on-demand
access to computing power, storage, databases, networking, machine learning,
and more. It allows users to run applications, host websites, and store data
without owning physical servers.
Answer:
Yes, AWS offers a Free Tier that gives new users limited access to
services like EC2, S3, Lambda, and RDS for 12 months. However, exceeding usage
limits or using services not covered by the free tier may result in charges.
Answer:
Popular AWS services for beginners include:
Answer:
Answer:
EC2 (Elastic Compute Cloud) allows you to run virtual machines (instances) in
the cloud. You can choose an operating system, configure storage, and scale
resources based on your needs.
Answer:
Amazon S3 (Simple Storage Service) is used to store and retrieve any amount of
data at any time. It is ideal for backups, file hosting, media libraries, and
serving static content.
Answer:
Not necessarily. While programming helps in using services like Lambda and
automation via SDKs or the AWS CLI, many services can be managed through the
AWS web console with little to no code.
Answer:
No, but it’s helpful. Certifications like AWS Cloud Practitioner or Solutions
Architect Associate validate your skills and improve job prospects,
especially if you plan to work in cloud roles.
Answer:
Yes. You can host a static website using S3 and CloudFront or a dynamic
website using EC2, RDS, and Load Balancer. AWS offers flexible solutions
for all types of web hosting.
Answer:
Regions are geographical locations (like us-east-1, ap-south-1) where
AWS operates data centers. Each region contains Availability Zones (AZs)—isolated
locations for high availability and fault tolerance.
Please log in to access this content. You will be redirected to the login page shortly.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Comments(0)