Submit
Path:
~
/
/
usr
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
elbv2
/
File Content:
create-load-balancer.rst
**To create an Internet-facing load balancer** This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets. Command:: aws elbv2 create-load-balancer --name my-load-balancer --subnets subnet-b7d581c0 subnet-8360a9e7 Output:: { "LoadBalancers": [ { "VpcId": "vpc-3ac0fb5f", "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188", "State": { "Code": "provisioning" }, "DNSName": "my-load-balancer-424835706.us-west-2.elb.amazonaws.com", "SecurityGroups": [ "sg-5943793c" ], "LoadBalancerName": "my-load-balancer", "CreatedTime": "2016-03-25T21:26:12.920Z", "Scheme": "internet-facing", "Type": "application", "CanonicalHostedZoneId": "Z2P70J7EXAMPLE", "AvailabilityZones": [ { "SubnetId": "subnet-8360a9e7", "ZoneName": "us-west-2a" }, { "SubnetId": "subnet-b7d581c0", "ZoneName": "us-west-2b" } ] } ] } **To create an internal load balancer** This example creates an internal load balancer and enables the Availability Zones for the specified subnets. Command:: aws elbv2 create-load-balancer --name my-internal-load-balancer --scheme internal --subnets subnet-b7d581c0 subnet-8360a9e7 Output:: { "LoadBalancers": [ { "VpcId": "vpc-3ac0fb5f", "LoadBalancerArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/5b49b8d4303115c2", "State": { "Code": "provisioning" }, "DNSName": "internal-my-internal-load-balancer-1529930873.us-west-2.elb.amazonaws.com", "SecurityGroups": [ "sg-5943793c" ], "LoadBalancerName": "my-internal-load-balancer", "CreatedTime": "2016-03-25T21:29:48.850Z", "Scheme": "internal", "Type": "application", "CanonicalHostedZoneId": "Z2P70J7EXAMPLE", "AvailabilityZones": [ { "SubnetId": "subnet-8360a9e7", "ZoneName": "us-west-2a" }, { "SubnetId": "subnet-b7d581c0", "ZoneName": "us-west-2b" } ] } ] }
Submit
FILE
FOLDER
Name
Size
Permission
Action
add-tags.rst
333 bytes
0755
create-listener.rst
3050 bytes
0755
create-load-balancer.rst
2735 bytes
0755
create-rule.rst
1303 bytes
0755
create-target-group.rst
1039 bytes
0755
delete-listener.rst
249 bytes
0755
delete-load-balancer.rst
256 bytes
0755
delete-rule.rst
255 bytes
0755
delete-target-group.rst
241 bytes
0755
deregister-targets.rst
680 bytes
0755
describe-listeners.rst
2772 bytes
0755
describe-load-balancer-attributes.rst
842 bytes
0755
describe-load-balancers.rst
1469 bytes
0755
describe-rules.rst
2700 bytes
0755
describe-ssl-policies.rst
1240 bytes
0755
describe-tags.rst
785 bytes
0755
describe-target-group-attributes.rst
752 bytes
0755
describe-target-groups.rst
1597 bytes
0755
describe-target-health.rst
3144 bytes
0755
modify-listener.rst
2413 bytes
0755
modify-load-balancer-attributes.rst
2940 bytes
0755
modify-rule.rst
1097 bytes
0755
modify-target-group-attributes.rst
858 bytes
0755
modify-target-group.rst
1291 bytes
0755
register-targets.rst
811 bytes
0755
remove-tags.rst
307 bytes
0755
set-rule-priorities.rst
1078 bytes
0755
set-security-groups.rst
428 bytes
0755
set-subnets.rst
631 bytes
0755
N4ST4R_ID | Naxtarrr