PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
elbv2
**To create a target group for an Application Load Balancer** This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration for an HTTP or HTTPS target group. Command:: aws elbv2 create-target-group --name my-targets --protocol HTTP --port 80 --vpc-id vpc-3ac0fb5f Output:: { "TargetGroups": [ { "TargetGroupName": "my-targets", "Protocol": "HTTP", "Port": 80, "VpcId": "vpc-3ac0fb5f", "TargetType": "instance", "HealthyThresholdCount": 5, "Matcher": { "HttpCode": "200" }, "UnhealthyThresholdCount": 2, "HealthCheckPath": "/", "HealthCheckProtocol": "HTTP", "HealthCheckPort": "traffic-port", "HealthCheckIntervalSeconds": 30, "HealthCheckTimeoutSeconds": 5, "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067" } ] } By default, targets are registered by instance ID. To register targets by IP address, create a target group with a target type of ``ip``. Command:: aws elbv2 create-target-group --name my-ip-targets --protocol HTTP --port 80 --target-type ip --vpc-id vpc-3ac0fb5f **To create a target group for a Network Load Balancer** This example creates a target group that you can use to route traffic to targets using TCP on port 80. This target group uses the default health check configuration for a TCP target group. Command:: aws elbv2 create-target-group --name my-tcp-targets --protocol TCP --port 80 --vpc-id vpc-3ac0fb5f Output:: { "TargetGroups": [ { "TargetGroupName": "my-tcp-targets", "Protocol": "TCP", "Port": 80, "VpcId": "vpc-3ac0fb5f", "TargetType": "instance", "HealthyThresholdCount": 3, "Matcher": {}, "UnhealthyThresholdCount": 3, "HealthCheckProtocol": "TCP", "HealthCheckPort": "traffic-port", "HealthCheckIntervalSeconds": 30, "HealthCheckTimeoutSeconds": 10, "TargetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-tcp-targets/b6bba954d1361c78" } ] } By default, targets are registered by instance ID. To register targets by IP address, create a target group with a target type of ``ip``. Command:: aws elbv2 create-target-group --name my-tcp-ip-targets --protocol TCP --port 80 --target-type ip --vpc-id vpc-3ac0fb5f
[-] modify-listener.rst
[edit]
[-] describe-listener-certificates.rst
[edit]
[-] create-target-group.rst
[edit]
[-] add-tags.rst
[edit]
[-] describe-target-group-attributes.rst
[edit]
[-] modify-load-balancer-attributes.rst
[edit]
[+]
..
[-] describe-rules.rst
[edit]
[-] delete-target-group.rst
[edit]
[-] describe-load-balancer-attributes.rst
[edit]
[-] delete-listener.rst
[edit]
[-] set-subnets.rst
[edit]
[-] set-security-groups.rst
[edit]
[-] add-listener-certificates.rst
[edit]
[-] modify-rule.rst
[edit]
[-] describe-target-groups.rst
[edit]
[-] modify-target-group-attributes.rst
[edit]
[-] describe-account-limits.rst
[edit]
[-] delete-rule.rst
[edit]
[-] delete-load-balancer.rst
[edit]
[-] register-targets.rst
[edit]
[-] describe-tags.rst
[edit]
[-] modify-target-group.rst
[edit]
[-] remove-tags.rst
[edit]
[-] describe-ssl-policies.rst
[edit]
[-] remove-listener-certificates.rst
[edit]
[-] create-rule.rst
[edit]
[-] deregister-targets.rst
[edit]
[-] set-ip-address-type.rst
[edit]
[-] create-listener.rst
[edit]
[-] describe-target-health.rst
[edit]
[-] describe-listeners.rst
[edit]
[-] set-rule-priorities.rst
[edit]
[-] describe-load-balancers.rst
[edit]
[-] create-load-balancer.rst
[edit]