Web Tier Access Test

Web Tier Access Test

  1. After successful creation, select Output. Copy the value of WebTierLoadBalancerURL and paste it into your web browser.

AWS CloudFormation

  1. In the web browser, you will see the text line This Amazon EC2 instance is located in Availability Zone: us-east-1a.

AWS CloudFormation

  1. You can then refresh the page to switch to another AZ: This Amazon EC2 instance is located in Availability Zone: us-east-1b.

AWS CloudFormation

  1. Go back to the Output section and copy the value of BastionHostIP.

AWS CloudFormation

  1. SSH into the Bastion Host using the keypair and IP you just copied.

AWS CloudFormation

  1. SSH connection successful.

AWS CloudFormation

  1. Create the cfn-keypair.pem file and copy the key content from your local computer, then save and exit using the command :wq!.

AWS CloudFormation

  1. Perform an intermediate SSH connection to the Web tier EC2 instance using the following commands:
chmod 400 <path_key_pair>
ssh -i <path_to_key_pair> ec2-user@<web_tier_ec2_private_ip>

AWS CloudFormation