Login to F5’s lab platform (Unified Demo Framework) and launch a remote desktop session

Follow the link in your email invite and login to the lab environment.

Your Deployment => Systems => win2019 => DETAILS. Copy the Administrator password to your clipboard. The password starts immediately after Administrator:

../../_images/00_admin_pass.png

Click [Done] in the lower right-hand corner.

Under win2019, from the ACCESS drop-down, select RDP and resolution. The lab looks best in FHD (1920 x 1080). This will download the rdp file to your computer. Launch the RDP file and login via RDP using the Administrator credentials. Copy and paste credentials from your clipboard.

../../_images/01_rdp.png

When prompted with the blue “Networks” message click “Yes”.

../../_images/02_networks.png

Attention

Before proceeding, wait 30 seconds for the Visual Studio Code and Postman applications to start automatically.

You can run the entire lab from within the Windows jump host.

Visual Studio Code => View => Terminal

You will see:
  • AWS Console URL
  • AWS Console Username
  • AWS Console Password
../../_images/1_vscode_terminal.png

Maximize the Terminal Window by clicking on the ^ in the upper-right-hand corner of the Terminal.

../../_images/2_vscode_terminal.png

Login to AWS Console

A URL shortcut has been auto-generated on the Windows desktop: “Amazon Web Services Sign-In”.

First, launch Firefox from the taskbar, then click on the “Amazon Web Services Sign-In” URL shortcut on the Desktop.

If the Firefox resolution in your RDP session renders components off-screen, try to first launch Firefox from the taskbar before you click on the “Amazon Web Services Sign-In” URL shortcut on the Desktop.

Alternatively, you can CTRL+click the “AWS Console URL:” https shortcut in the Visual Studio Code terminal.

../../_images/3_aws_console_desktop_shortcut.png

Login to the AWS web console with the credentials shown in your terminal.

../../_images/4_signin_aws_console.png

In the upper-right-hand corner, choose US-West (Oregon) us-west-2 region.

../../_images/5_aws_console_confirm_region.png

“Services” => type “marketplace” in the search window. Select “AWS Marketplace Subscriptions” from the search results. Right-click on “Manage subscriptions” to open a new tab. => “Discover products” Type “f5 advanced 25mbps” in the search box. => “F5 Advanced WAF with LTM, IPI, and Threat Campaigns (PAYG, 25Mbps)” => “Continue to Subscribe” => “Accept Terms”

../../_images/6_aws_marketplace_accept_terms_f5.png ../../_images/6a_aws_marketplace_accept_terms_f5.png ../../_images/6b_aws_marketplace_accept_terms_f5.png

Track “Effective date” and “Expiration date”. When they are no longer “Pending” you can proceed.

../../_images/7_aws_marketplace_subscribe_to_f5.png

Create an AWS VPC with Terraform

From the Visual Studio Code Terminal, clone the github repository for this lab and change to the working directory.

Attention

For a smooth ride, always invoke commands from inside the cloned git repository (f5agility2020-pc101). To check you’re in the right place, you can run the command pwd and the output should read /home/f5admin/f5agility2020-pc101

git clone https://github.com/TonyMarfil/f5agility2020-pc101.git
cd f5agility2020-pc101/
../../_images/8_git_clone_and_cd.png

Run the start.sh script to set environment variables and make the ./scripts directory executable

source ./start.sh
../../_images/9_source_start.png

Create an SSH key and upload to your AWS account. We’ll later use this key to connect to our F5 instances.

create-ssh-keys.sh
../../_images/9a_create_ssh_keys.png

From the AWS Console => Services => EC2 => Key pairs. Confirm your ssh key was created.

../../_images/14_confirm_ssh_keys.png

Initialize Terraform modules.

terraform init
../../_images/10_terraform_init.png

Validate Terraform files and create a terraform dependency graph.

terraform validate
create-terraform-dependency-graph.sh
../../_images/11_terraform_validate_and_dependency_graph.png

From the Windows desktop, click on the “terraform_dependancy_graph” URL shortcut. Review in your browser. Terraform creates a dependency of all of the objects in your environment. This is one of the major advantages to using a declarative tool for building infrastructure and services.

../../_images/12_terraform_dependency_graph_desktop_shortcut.png ../../_images/13_terraform_dependency_graph_svg.png

From the Visual Studio Code Terminal

terraform plan -var 'bigip_admin_password=f5letme1n'
terraform apply -var 'bigip_admin_password=f5letme1n' -auto-approve
../../_images/15_terraform_plan.png ../../_images/16_terraform_apply.png ../../_images/17_terraform_apply_complete.png

Review the terraform output when complete. You can always get the terraform output details again by invoking from the terminal:

terraform output
../../_images/18_terraform_output.png