Automation

All of the tasks we completed to launch an EC2 instance and install Apache httpd can be automated with a tool called Cloudformation. What would we have to do?

  1. Launch an EC2 instance
  2. Install the Apache web server (use userdata)
  3. Add some content
  4. Configure the security group
  5. Add and configure storage
  6. Move the web content
  7. Configure Apache httpd to point to the new web location

Download and launch this template in the AWS Cloudformation Console to peform all of the steps in exercises 1-5. The stack takes about 2 minutes to create. Simply delete the stack to perform exercise 6 (Cleaning Up). Note that you must have an existing private key in EC2 before you launch this template.