https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/elb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/elb/create-load-balancer.rst
**To create an HTTP load balancer**

This example creates a load balancer with an HTTP listener in a VPC.

Command::

  aws elb create-load-balancer --load-balancer-name my-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" --subnets subnet-15aaab61 --security-groups sg-a61988c3

Output::

  {
      "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
  }


This example creates a load balancer with an HTTP listener in EC2-Classic.

Command::

  aws elb create-load-balancer --load-balancer-name my-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" --availability-zones us-west-2a us-west-2b

Output::

  {
      "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  }

**To create an HTTPS load balancer**

This example creates a load balancer with an HTTPS listener in a VPC.

Command::

  aws elb create-load-balancer --load-balancer-name my-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" "Protocol=HTTPS,LoadBalancerPort=443,InstanceProtocol=HTTP,InstancePort=80,SSLCertificateId=arn:aws:iam::123456789012:server-certificate/my-server-cert" --subnets subnet-15aaab61 --security-groups sg-a61988c3

Output::

  {
      "DNSName": "my-load-balancer-1234567890.us-west-2.elb.amazonaws.com"
  }

This example creates a load balancer with an HTTPS listener in EC2-Classic.

Command::

  aws elb create-load-balancer --load-balancer-name my-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" "Protocol=HTTPS,LoadBalancerPort=443,InstanceProtocol=HTTP,InstancePort=80,SSLCertificateId=arn:aws:iam::123456789012:server-certificate/my-server-cert" --availability-zones us-west-2a us-west-2b

Output::

  {
      "DNSName": "my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  }

**To create an internal load balancer**

This example creates an internal load balancer with an HTTP listener in a VPC.

Command::

  aws elb create-load-balancer --load-balancer-name my-load-balancer --listeners "Protocol=HTTP,LoadBalancerPort=80,InstanceProtocol=HTTP,InstancePort=80" --scheme internal --subnets subnet-a85db0df --security-groups sg-a61988c3

Output::

  {
      "DNSName": "internal-my-load-balancer-123456789.us-west-2.elb.amazonaws.com"
  }


https://t.me/RX1948 - 2025