One of the easiest ways to take advantage of AWS services with webserver virtual machines is the Application Load Balancer (ELBv2). The ELBv2 allows for forwarding HTTP/S traffic to private IP addresses along with pointing to a specific EC2 instance.

Create Front End Web Servers
  1. Login to your Cloud SDDC vCenter
  2. Click ‘Menu’ and select ‘Content Libraries’
  3. Select the ‘vExpert-Content-Library’ and click ‘Templates’
  4. Right-Click ‘Frontend-Apache-01’ and click ‘New VM from This Template’
  5. Name your VM ‘Frontend-Apache-01’
  6. Expand ‘SDDC-Datacenter’
  7. Select the ‘Workloads’ folder
  8. Click ‘Next’
  9. Expand ‘Cluster-1’ and select ‘Compute-ResourcePool’
  10. Click ‘Next’
  11. Click ‘Next’ on the ‘Review Details’ page
  12. Select the ‘WorkloadDatastore’
  13. Select the ‘sddc-cgw-network-1’ Destination Network
  14. Click ‘Next’
  15. Click ‘Finish to deploy the VM
  16. Once the VM is deployed, Power-on the VM
  17. Repeat the previous steps for ‘Frontend-Apache-02, 03, and 04’ (03 and 04 are optional)
Create the Target Group
  1. Login to the AWS Console
  2. Click ‘Services’ and select ‘EC2’
  3. In the left-pane, scroll down and select ‘Target Groups’
  4. Click ‘Create target group’
  5. Enter the following information:
    • ‘Target group name’ = ‘VM-Frontend-TG’
    • Protocol = ‘HTTP’
    • Port = ‘80’
    • Target type = ‘IP’
    • VPC = [VPC the SDDC is connected to]
  6. Click ‘Create’
Create the Load Balancer
  1. With our new Target Group selected, click the ‘Targets’ tab
  2. Click ‘Edit’, Select the ‘+’ button
  3. Under ‘Network’, select ‘Other private IP address’
  4. Set ‘Availability Zone’ to ‘All’
  5. Add the IP addresses of the 4 ‘Frontend-Apache-*’ VMs one by one, and click ‘Add to list’
  6. Click ‘Register'
  7. In the left-pane scroll down and select ‘Load Balancers’
  8. Click ‘Create Load Balancer’
  9. Find ‘Application Load Balancer’ and click ‘Create’
  10. Name your load balancer ‘VMC-LB’
  11. Scroll down to ‘Availability Zones’
  12. Select the VPC that is linked to the SDDC
  13. Check the checkbox next to ‘Availability Zone’ to select all AZ’s
  14. Click ‘Next: Configure Security Settings’
  15. Click ‘Next: Configure Security Groups’
  16. Click ‘Select an existing security group’
  17. Choose the Security Group you have configured
  18. Click ‘Next: Configure Routing’
  19. Select ‘Existing target group’ next to ‘Target Group’
  20. Select the ‘VM-Frontend-TG’
  21. Click ‘Next: Register Targets’
  22. Click ‘Next: Review’
  23. Click ‘Create’ Click the hyperlink on the load balancer ‘VMC-LB’ and wait until it is finished provisioning
Add a Security Rule
  1. While the load balancer is provisioning, in the left-pane, select ‘Security Groups’
  2. Select your Security Group and select the ‘Inbound’ tab
  3. Click ‘Edit’
  4. Click ‘Add Rule’
  5. Enter the following information:
    • Type = ‘HTTP’
    • Source = ‘Custom’, ‘, ::/0’
    • Description = ‘Load Balancer’
  6. Click ‘Save’
  7. Click back to the ‘Load Balancers’ page
  8. Copy the ‘DNS name’ address from the load balancer basic configuration and paste it in a new tab

You will now see a static webpage with the VM name that is being resolved. Click ‘Refresh’ and watch as the Load Balancer distributes the request between your virtual machines.

When you are finished with this demo, you can delete the load balancer and target groups from your AWS account.

check-circle-line exclamation-circle-line close-line
Scroll to top icon