Collapse AllExpand All

eulb-create-lb

Create a Load Balancer. After the load balancer is created, instances must be registered with it separately.

Syntax

eulb-create-lb --availability-zones ZONE1,ZONE2,... 
			   --listener "lb-port=PORT, protocol=PROTOCOL
                          instance-port=PORT, instance-protocol=PROTOCOL, 
                          cert-id=ARN"
               ELB

Options

Option Description Required
--availability-zones ZONE1,ZONE2,... Availability zones the load balancer should run in Yes
--listener "lb-port=PORT, protocol={HTTP,HTTPS,SSL,TCP}, instance-port=PORT, instance-protocol={HTTP,HTTPS,SSL,TCP}, cert-id=ARN" Port and protocol settings for the load balancer. This option may be used multiple times. lb-port and protocol specify the external port number and protocol, instance-port and instance-protocol specify the port and protocol to use for routing traffic to backend instances, and cert-id specifies the ARN of the server certificate to use for encrypted connections. Yes (Minimum: lb-port, protocol, instance-port)
ELB Name of the load balancer to create Yes

Common Options

Option Description
--region USER@REGION Name of the region or user in config files to use to connect to the service
-U URL, --url URL Load balancing service endpoint URL
-I key_id, --access-key-id key_id User's access key ID
-S key, --secret-key key User's AWS secret key
--show-empty-fields Show empty fields using (nil) as a placeholder to indicate that this data was not requested. Empty fields are not shown by default.

Output

Eucalyptus returns the DNS name of the new load balancer.

Example

eulb-create-lb -z PARTI00 -l "lb-port=80, protocol=HTTP, instance-port=80, instance-protocol=HTTP" MyLoadBalancer
DNS_NAME     MyLoadBalancer-972528928292.lb.localhost