Deploy The Application Infrastructure

The second section of the lab will build out the sample application stack what will run in the VPC which was build in section 1.

This application stack will comprise of the following :

Once you completed below steps, you base architecture will be as follows:

Section2 Application Architecture

Building each components in this section manually will take a bit of time, and because our objective in this lab is to show you how to automate patching through AMI build and deployment. To save time, we have created a cloudformation template that you can deploy to expedite the process.

Please follow the steps below to do so :

2.1. Get the Cloudformation Template.

To deploy the second CloudFormation template, you can either deploy directly from the command line or via the console.

You can get the template here .

Click here for CloudFormation command line deployment steps
Click here for CloudFormation console deployment steps

2.2. Confirm Successful Application Installation

Once the stack creation is complete, let’s check that the application deployment has been successful. To do this follow below steps:

  1. Go to the Outputs section of the cloudformation stack you just deployed.

  2. Note the value of OutputPattern3ALBDNSName and you can find the DNS name as per screen shot below: Section2 CloudFormation Output

  3. Copy the value and paste it into a web browser.

  4. If you have configured everything correctly, you should be able to view a webpage with ‘Welcome to Re:Invent 2020 The Well Architected Way’ as the page title.

  5. Adding /details.php to the end of your DNS address will list the packages currently available, together with the AMI which has been used to create the instance as follows: Section2 ALB Details.php Page

  6. Take note of the installed packages and AMI Id (Copy and paste this elsewhere we will use this to confirm the changes later).

  7. When you have confirmed that the application deployment was successful, move to section 3 which will deploy your AMI Builder Pipeline.


END OF SECTION 2