Skip to main content

Provisioning a Linux EC2 Instance in AWS

Hands-On Lab


Photo of

Training Architect





Launching an EC2 instance is a basic task that all architects should master. However, there are many configuration decisions that can make or break a successful launch.

In this scenario, you need to launch an Apache Web Server on a Linux EC2 instance.

Your task will be to use the User Data to provide a script to automatically install Apache. You will verify that Apache installed correctly using a web browser. You will also log into the OS using SSH.

The user_data script for this activity is:

sudo yum update -y
sudo yum install -y httpd
sudo service httpd start
sudo chkconfig httpd on

Note: For Windows PuTTY information, see

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.