CmdID / aws / aws vpc-lattice
aws vpc-lattice get-target-group
Retrieves information about the specified target group. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get information about a target group
The following get-target-group example gets information about the specified target group, which has a target type of INSTANCE.
aws vpc-lattice get-target-group --target-group-identifier tg-0eaa4b9ab4EXAMPLEIdentify--target-group-identifierThe ID or ARN of the target group.Its output, shortened
{
"arn": "arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-0eaa4b9ab4EXAMPLE",
"config": {
"healthCheck": {
"enabled": true,
"healthCheckIntervalSeconds": 30,
"healthCheckTimeoutSeconds": 5,
"healthyThresholdCount": 5,
"matcher": {
"httpCode": "200"
},
"path": "/",
"protocol": "HTTPS",
"protocolVersion": "HTTP1",
"unhealthyThresholdCount": 2
},
"port": 443,
"protocol": "HTTPS",
"protocolVersion": "HTTP1",
"vpcIdentifier": "vpc-f1663d9868EXAMPLE"
},
"createdAt": "2023-05-06T04:41:04.122Z",
"id": "tg-0eaa4b9ab4EXAMPLE",
"lastUpdatedAt": "2023-05-06T04:41:04.122Z",
"name": "my-target-group",
"serviceArns": [
"arn:aws:vpc-lattice:us-west-2:123456789012:service/svc-0285b53b2eEXAMPLE"
],
"status": "ACTIVE",
"type": "INSTANCE"
… 1 more lineFor more information, see Target groups in the Amazon VPC Lattice User Guide.
Options
--target-group-identifierThe ID or ARN of the target group.