AWS CloudFormation Challenge

Prerequisites

  1. Good knowledge of AWS services
    • Amazon CloudFormation
    • Amazon EC2 Instances
  2. Laptop
  3. Internet Browser
  4. Internet connection

Challenge Instructions

  1. Region : Make sure to use us-east-1 region to create all the resources.
  2. You will be provided with the requirements of the challenge. If you are new to AWS Cloud, we recommend you go through our hands-on Labs before taking this challenge.
  3. Challenge Duration60 minutes

How to submit the challenge

  1. After building the infrastructure, click on Validate button, to validate if you have built the required infrastructure and completed the challenge successfully.
  2. Validation status
    • Success - You have completed the challenge successfully.
    • Failed - You have failed to complete the challenge.
  3. Once you have successfully validated the challenge, click on End Lab.

Cloud Challenge Details

In this lab challenge, your Amazon CloudFormation skills are put to the test. You'll be given a requirement and you have to reach it using your knowledge of Amazon CloudFormation and Amazon EC2. The Lab Challenge helps you understand the real-time scenarios.

A company XYZ is deploying a new web application. As a part of the infrastructure, they need to update the server from t2.micro to t2.medium for better performance, add HTTP in security groups inbound rule which is accessible on port 80 by removing the present SSH entry which is accessible on port 22, and finally update the output, it should display the private IP. Now your challenge is to update the CloudFormation stack using the Change set, you can use Designer to create a Change set.

  1.  Copy the S3 Object URL of EC2InstanceInput.template file present in S3 bucket starting with name whizlabs.

  2. Create Cloudformation stack using S3 Object URL of EC2InstanceInput.template file with below details

    • EC2 Instance - t2.micro

    • SSH Port open.

  3. Wait until CloudFormation stack status changes to CREATE_COMPLETE.

  4. Update the Cloudformation Stack to:

    • Increase server capacity from t2.micro to t2.medium

    • Remove SSH Port access

    • Provide HTTP Port Access

    • Replace the output to show Private IP instead of Public IP 

  5. Execute the Changes and check if the server capacity has been increased.

  6. Click on Validate to complete the challenge.