Setup

Lab Setup

Lab Requirements

You will need the following to be able to perform this lab:

1. The lab must be performed logged into a user with Administrator permissions and an existing EC2 Key Pair.
2. An available VPC in the region us-east-1 region.

The stack below takes approximately 15 minutes to create.

1.1 Deploy the Lab Infrastructure using CloudFormation

There are two options for launching the CloudFormation Stack. The first option will automatically populate your CloudFormation stack variables. The second option will walk through all the steps involved in manually creating a new stack from a template URL.

Option A: Automatically launch and populate stack creation variables

Deploy Lab by clicking here

The automatic launch process will only work if you are using the new version of the CloudFormation console.

If the button fails to take you to the create new stack page, try switching to the new CloudFormation console by clicking the New Console link in the CloudFormation drop-down menu.

Option B: Manually walk through the stack creation from a template URL

  1. Download the Deploy CloudFormation script for this lab:
File name Purpose Template download
distributed.yml Deploys the Lab Download the Deploy lab CloudFormation template

The instructions below are based on the new version of the CloudFormation console.If the button fails to take you to the create new stack page, try switching to the new CloudFormation console by clicking the New Console link in the CloudFormation drop-down menu.

  1. To create this stack, open the CloudFormation Console and then click on Create Stack, and then With new resources (standard).

Create stack

When prompted for the template, click on Upload a template file, and then provide the path to the file you just downloaded.

Specify template location

  1. On the next page Specify Stack Details

    • Define your Stack name: by entering CWLab
    • Provide your email address. This will only be used in the lab, and will only be used to send you SNS notifications of events.
    • Select an InstanceType. We recommend selecting the default free tier eligible t2.micro option.
    • Select your EC2 KeyPair from the KeyName pull down list.
    • Define your SSHLocation entering your IP address with CIDR subnet mask
      • You can use checkip.amazonaws.com/ to identify your IP address and restrict access to it specifically by entering the IP followed by the CIDR subnet mask of /32 (with no spaces between IP and the CIDR subnet mask).
  2. Choose Next

  3. On the Options page optionally specify additional Tags, and then scroll down and choose Next

  4. On the Review page:

    • Review your selections
    • Scroll down and check the box I acknowledge that AWS CloudFormation might create IAM resources.
  5. Choose Create

1.2 Confirm your subscription to the SNS Notification - After the CloudFormation script has completed, enter the email client for the address you provided earlier. - Locate and email from AWS Notifications with the subject AWS Notifications - Subscription Confirmation. - Click through the Confirm subscription link to confirm your subscription.

In this lab you will interact with the web based application you just created. To generate activity logs you will need to upload pictures to your application server. You can use your own images or download sample images to use here:

File name Purpose Template download
sample-photos.zip Sample Photos for the Lab Download the Sample Photos that you can use to upload to your application server