EC2 Instance Bootstrapping

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. In this lab, we configure a web server to corporate standards, noting how much effort it can take to walk through these steps manually each time. We then learn how to bootstrap an instance using a user data script, allowing us to automatically build servers. By the end of this lab, the user will understand what an EC2 bootstrap script is and how to use one to automate one of the most tedious parts of server building.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Manually Install Software on webserver-01

Install Apache2, the AWS CLI, and MySQL Server. Configure the default apache2 test page.

Use a Bootstrap Script to Build webserver-02 and Debug Issues

Complete the same objectives again, but this time use a bootstrap script. Determine any errors that occurred and find out the root cause.

Use a Fixed Bootstrap Script to Build webserver-03

Complete the objectives a third time. This time, you should be able to complete them without any issues.

Additional Resources

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?