aws ec2 describe-placement-groups
Describes the specified placement groups or all of your placement groups. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To describe your placement groups
The following describe-placement-groups example describes all of your placement groups.
aws ec2 describe-placement-groupsIdentifyIts output
{
"PlacementGroups": [
{
"GroupName": "my-cluster",
"State": "available",
"Strategy": "cluster"
}
]
}For more information, see Placement groups for your Amazon EC2 instances in the Amazon EC2 User Guide.
Options
--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--filtersThe filters.--group-idsThe IDs of the placement groups.--group-namesThe names of the placement groups.