AWS Sysops Course Labs Guide: Sameh Tawfik
AWS Sysops Course Labs Guide: Sameh Tawfik
Labs Guide
Sameh Tawfik
Cloud and DevOps Consultant
https://www.linkedin.com/in/sameh-tawfik-consultant/
Launch an EC2 instance of AWS Linux AMI, install, run httpd service with a simple html webpage and
allow it for public access from anywhere.
Steps:
- Network: default
- Subnet: No preference
- Auto-assign Public IP: Enable
• Click Next: Add Storage, and then click Next: Add Tags.
• On the Add Tags page, click on Add Tag then add the following:
- Key: Name
- Value: Webserver-yourname
• On the Configure Security Group page, click Create a new security group, and set the following
values:
• Click Add Rule, and set the following values (leave the default SSH rule):
- Type: HTTP
- Source: Anywhere
• Click View Instances and give it a few minutes to turn into the running state.
• Note the IPv4 public IP of the instance and review the other attributes of the instance.
<html>
<body bgcolor="#CC9900">
<h1>Hello World!</h1>
<p>Web Server</p>
</body>
</html>
sudo systemctl restart httpd
• Test the web access to the instance using its public IP address or its DNS name to make sure you
retrieve the HTML page.