#90DaysOfDevOps Challenge - Day 47 - Test Knowledge on AWS

Cloud Engineer and DevOps enthusiast, just talking about AWS, Docker, Linux, Kubernetes, Python, and automation.
Search for a command to run...

Cloud Engineer and DevOps enthusiast, just talking about AWS, Docker, Linux, Kubernetes, Python, and automation.
No comments yet. Be the first to comment.
The #90DaysOfDevOps Challenge is a dedicated initiative aimed at promoting continuous learning and skill development in the field of DevOps over a 90-day period.
Over the past few days, we have explored various AWS services and learned how they contribute to the world of DevOps. Today, on Day 46 of the #90DaysOfDevOps Challenge, we will focus on setting up CloudWatch alarms and configuring an SNS topic in AWS...
Running your own home lab used to mean expensive hardware, complex networking, and hours of manual configuration. This project changes that. With a single Raspberry Pi, Docker Compose, and a few hundr

Welcome to an advanced hybrid directory demo where we'll guide you through setting up a hybrid environment, connecting to simulated on-premises infrastructure, creating a managed Microsoft AD within AWS, establishing a two-way forest trust, and integ...

Hello DevOps Community! Today marks the completion of the #90DaysOfDevOps Challenge, and it's a moment to reflect on the journey we've undertaken together. Throughout this period, I've engaged with various technologies, refining my skills in the DevO...

In a modern cloud infrastructure setup, creating a robust and scalable 2-tier architecture is essential. Such an architecture helps meet the demands of your applications while ensuring repeatability, reliability, and security. In this article, we'll ...

Welcome to Part 4 of my series on building a comprehensive CI/CD pipeline in AWS. In this article, I will explore AWS CodePipeline, a powerful service for building and deploying applications in a continuous integration and continuous delivery (CI/CD)...

Welcome to Day 47 of the #90DaysOfDevOps Challenge. In today's session, we will put our AWS knowledge to the test and explore some hands-on exercises to deepen our understanding of AWS services. We will focus on two tasks: launching an EC2 instance and creating an Auto Scaling group. Let's dive in!

Log in to the AWS Management Console.
Navigate to the EC2 service.
Click on "Launch Instances" and follow the wizard to configure your instance.
Select the desired instance type, security group, and other settings.
Choose an appropriate Amazon Machine Image (AMI) for your web server.
Review your configuration and launch the instance.


Update the package manager on your EC2 instance.
sudo apt update
Install a web server of your choice (e.g., Apache, Nginx). You can test it by accessing the public IP Address of the EC2 instance once installed.
sudo apt install apache2

Deploy a simple website index.html to the appropriate directory /var/www/html
<!DOCTYPE html>
<html>
<head>
<title>Esteban Moreno - #90daysofdevopschallenge</title>
</head>
<body>
<h1>Esteban Moreno - #90daysofdevopschallenge</h1>
<p>Welcome to my simple website.</p>
</body>
</html>
Test the web application by accessing the public IP address of your EC2 instance in a web browser.

Go to the Amazon CloudWatch service in the AWS Management Console.
Create a new CloudWatch dashboard.

Add widgets to monitor key metrics of your EC2 instance, such as CPU utilization, network traffic, and disk usage.

Set up CloudWatch alarms to receive notifications when certain thresholds are exceeded.



Monitor the performance of your EC2 instance and troubleshoot any issues that arise.
Navigate to the Auto Scaling service in the AWS Management Console.
Click on "Create Auto Scaling group" and follow the wizard to configure your group. A template of the existing EC2 is required to create an ASG.

Navigate to the existing EC2 instance and create a template

Specify the desired capacity, instance type, and other settings.
Set up scaling policies based on demand or schedule.
Configure the desired monitoring and health checks for your instances.

You can navigate to the Monitoring section of the Auto Scaling Group to view the monitored metrics.

You can add the above metrics to the dashboard created earlier.

Set up CloudWatch alarms to receive notifications using the available metrics.

Monitor the performance of your Auto Scaling group and troubleshoot any issues that arise.
Install the AWS CLI on your local machine if you haven't already.
sudo apt install awscli
Configure the AWS CLI with your AWS credentials.
aws configure
Use the AWS CLI commands to view the state of your Auto Scaling group, such as the number of instances running and the scaling activities.
aws autoscaling describe-auto-scaling-groups

Verify that the correct number of instances are running and that the Auto Scaling group is functioning as expected.
aws ec2 describe-instances

Congratulations! You have completed the tasks for Day 47 of the #90DaysOfDevOps Challenge. By launching an EC2 instance, deploying a web application, creating an Auto Scaling group, and monitoring the performance using Amazon CloudWatch, you have gained valuable hands-on. Stay tuned for a new AWS service on day 48.