CmdID / aws / aws cloudfront
aws cloudfront get-connection-group
Gets information about a connection group. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To get a CloudFront connection group
The following get-connection-group example retrieves information about a CloudFront connection group.
aws cloudfront get-connection-group --identifier cg_2wjDWTBKTlRB87cAaUQFaakABCIdentify--identifierThe ID, name, or Amazon Resource Name (ARN) of the connection group.Its output
{
"ETag": "E23ZP02F085ABC",
"ConnectionGroup": {
"Id": "cg_2wjDWTBKTlRB87cAaUQFaakABC",
"Name": "connection-group-2",
"Arn": "arn:aws:cloudfront::123456789012:connection-group/cg_2wjDWTBKTlRB87cAaUQFaakABC",
"CreatedTime": "2025-05-06T15:42:00.790000+00:00",
"LastModifiedTime": "2025-05-06T15:42:00.790000+00:00",
"Ipv6Enabled": true,
"RoutingEndpoint": "dvdg9gprgabc.cloudfront.net",
"Status": "Deployed",
"Enabled": true,
"IsDefault": false
}
}For more information, see Create custom connection group (optional) in the Amazon CloudFront Developer Guide.
Options
--identifierThe ID, name, or Amazon Resource Name (ARN) of the connection group.