Slide 7
Slide 7 text
7
•
aws ec2 describe-capacity-reservations ¥
--filters "Name=state,Values=active" ¥
--query 'CapacityReservations[?AvailableInstanceCount>`0`].
[CapacityReservationId,InstancePlatform,AvailabilityZone,InstanceType,
AvailableInstanceCount]' ¥
--output table
------------------------------------------------------------------------
| DescribeCapacityReservations |
+----------------------+------------+-----------------+------------+---+
| cr-xxxxxxxxxxxxxxxxx | Linux/UNIX | ap-northeast-1a | r5.2xlarge | 1 |
| cr-xxxxxxxxxxxxxxxxx | Linux/UNIX | ap-northeast-1c | r5.2xlarge | 3 |
+----------------------+------------+-----------------+------------+---+