Provided by: elbcli_1.0.17.0-0ubuntu1_all
NAME
elb-create-lb - Create a new LoadBalancer
SYNOPSIS
elb-create-lb LoadBalancerName --listener "protocol=value, lb-port=value, instance-port=value, [instance-protocol=value], [cert-id=value]" [ --listener "protocol=value, lb-port=value, instance-port=value, [instance-protocol=value], [cert-id=value]" ...] [--availability-zones value[,value...] ] [--scheme value ] [--security-groups value[,value...] ] [--subnets value[,value...] ] [General Options]
DESCRIPTION
Create a new LoadBalancer
ARGUMENTS
LoadBalancerName Name of the LoadBalancer. You can also set this value using "--lb". Required.
SPECIFIC OPTIONS
-g, --security-groups VALUE1,VALUE2,VALUE3... IDs of VPC security groups assigned to the LoadBalancer. -i, --scheme VALUE Load balancing scheme: "internet-facing" or "internal". Internal load balancing scheme is only applicable for load balancers attached to a VPC. -l, --listener "protocol=value, lb-port=value, instance-port=value, [instance-protocol=value], [cert-id=value]" [ --listener "protocol=value, lb-port=value, instance-port=value, [instance-protocol=value], [cert-id=value]" ...] Port and protocol configuration for the LoadBalancer. For Windows, each listener must be surrounded in quotes. For protocol types "SSL" and "HTTPS", you must specify the SSL Certificate Id with "cert-id". Required. -s, --subnets VALUE1,VALUE2,VALUE3... IDs of subnets the LoadBalancer is attached to. Required, unless you don't want the LoadBalancer attached to a VPC, in which case you should specify --availability-zones option instead. -z, --availability-zones VALUE1,VALUE2,VALUE3... Availability zones configured for the LoadBalancer. Required, unless you want the LoadBalancer attached to a VPC, in which case you should specify --subnets option instead.
GENERAL OPTIONS
--aws-credential-file VALUE Location of the file with your AWS credentials. This value can be set by using the environment variable 'AWS_CREDENTIAL_FILE'. -C, --ec2-cert-file-path VALUE Location of the file with your EC2 X509 certificate. This value can be set by using the environment variable 'EC2_CERT'. --connection-timeout VALUE Specify a connection timeout VALUE (in seconds). The default value is '30'. --delimiter VALUE What delimiter to use when displaying delimited (long) results. --headers If you are displaying tabular or delimited results, it includes the column headers. If you are showing xml results, it returns the HTTP headers from the service request, if applicable. This is off by default. -I, --access-key-id VALUE Specify VALUE as the AWS Access Id to use. -K, --ec2-private-key-file-path VALUE Location of the file with your EC2 private key. This value can be set by using the environment variable 'EC2_PRIVATE_KEY'. --region VALUE Specify region VALUE as the web service region to use. This value can be set by using the environment variable 'EC2_REGION'. -S, --secret-key VALUE Specify VALUE as the AWS Secret Key to use. --show-empty-fields Show empty fields and rows, using a "(nil)" value. The default is to not show empty fields or columns. --show-request Displays the URL the tools used to call the AWS Service. The default value is 'false'. --show-table, --show-long, --show-xml, --quiet Specify how the results are displayed: tabular, delimited (long), xml, or no output (quiet). Tabular shows a subset of the data in fixed column-width form, while long shows all of the returned values delimited by a character. The xml is the raw return from the service, while quiet suppresses all standard output. The default is tabular, or 'show-table'. -U, --url VALUE This option will override the URL for the service call with VALUE. This value can be set by using the environment variable 'AWS_ELB_URL'.
INPUT EXAMPLES
Create a LoadBalancer named example-lb $PROMPT> elb-create-lb example-lb --headers --listener "lb-port=80,instance-port=8080,protocol=http" --listener "lb-port=443,instance-port=8080,protocol=https,cert-id=arn:aws:iam::555555555555:server-certificate/production/myCert" --availability-zones us-east-1a,us-east-1b
OUTPUT
This command returns a table that contains the following: * DNS_NAME - DNS name of LoadBalancer.
OUTPUT EXAMPLES
DNS_NAME DNS_NAME DNS_NAME example-lb-509639176.us-east-1.elb.amazonaws.com
SEE ALSO
http://docs.amazonwebservices.com/ElasticLoadBalancing/2012-06-01/DeveloperGuide/ http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/ Elastic Load Balancing command line t1.0.17.0 api=2012-06-01 ELB-CREATE-LB(1)