Elastic Load Balancing
Developer Guide (API Version 2012-06-01)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.

Create a HTTPS/SSL Load Balancer

This example walks you through the process of creating a HTTPS load balancer with SSL negotiation configurations and with back-end application instance authentication. You can optionally add tags.

Before you get started, be sure you've met the following prerequisites:

  • For this example, we use Availability Zone us-east-1a. In Availability Zone us-east-1a, launch the instances you intend to register with your load balancer. For more information about launching Amazon EC2 instances, see Launching and Using Instances.

  • The instances that you intend to register with your load balancer must be configured to receive requests from the Internet.

  • The instances to be registered with your load balancer must respond to the target of the health check with an HTTP status code 200. For information about Elastic Load Balancing health check, see Health Check.

  • If you plan to enable the keep-alive option on your EC2 instances, we recommend that you set the keep-alive settings to at least the idle timeout settings of your load balancer. If you want to ensure that the load balancer is responsible for closing the connections to your back-end instance, make sure that the value set on your instance for the keep-alive time is greater than the idle timeout setting on your load balancer. For information about load balancer idle timeout, see Idle Connection Timeout.

  • To enable HTTPS support for our listeners, you must first create an SSL certificate and then install it on your load balancer. The load balancer uses the certificate to terminate and then decrypt requests before sending them to the back-end instances. For information on how to create an SSL certificate, see SSL Certificate for Elastic Load Balancing.

The following sections include instructions for creating an HTTPS/SSL load balancer using the AWS Management Console or the AWS Command Line Interface (AWS CLI).