Deploying a Highly Available Web Application and a Bastion Host in AWS

1.5 hours
  • 5 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we are going to build a highly available web application, along with a highly available bastion host architecture.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Launch an RDS Database
  1. Launch an RDS database using the provided RDS backup image (containing the WordPress site data).
Create Security Groups
  1. Navigate to VPC.
  2. Create four security groups with inbound rules.
Create Launch Configurations and Auto Scaling Groups
  1. Create two Auto Scaling groups – bastion host and application servers.
Modify Database Security Groups and Create an Application Load Balancer
  1. Create an application load balancer to distribute traffic to the application servers.
Browse Web Application
  1. Navigate to the RDS console.
  2. Note the endpoint name.
  3. Navigate to Load Balancers for the DNS name, and browse to it.
  4. Configure WordPress:
    • Database Name: wordpressdb (not wordpress)
    • Username: wpuser
    • Password: Password1
    • Database Host: Use the RDS endpoint name
    • Table prefix: wp_

Additional Resources

Make sure you are using N. Virginia (us-east-1) as your region throughout the lab.

Database Snapshot ARN: arn:aws:rds:us-east-1:892710030684:snapshot:sysops-certification-la-course

  • Database Name: wordpressdb (not wordpress)
  • Username: wpuser
  • Password: Password1
  • Database Host: Use the RDS endpoint name
  • Table prefix: wp_

The user data script for the web server launch configuration is here.

NOTE: When selecting the AMI for your bastion host and instance for your web app, please use the AMI ID of the Amazon Linux 2 AMI instance.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?