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.
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.