AWS Query

C:>aws configure AWS Access Key ID [None]: 122223333444 AWS Secret Access Key [None]: 112332232344244442 Default region name [None]: us-east-1 Default output format [None]:

aws ec2 describe-volumes --filters Name=tag-key,Values="Name" Name=tag-value,Values="Test*" --query 'Volumes[*].{ID:VolumeId,Tag:Tags}'

C:>aws ec2 describe-volumes --volume-ids vol-0268b1427954d7967 {    "Volumes": [ {            "AvailabilityZone": "us-east-1a", "Attachments": [], "Encrypted": false, "VolumeType": "gp2", "VolumeId": "vol-0268b1427954d7967", "State": "available", "Iops": 450, "SnapshotId": "snap-08a37ff0999c34489", "CreateTime": "2017-05-09T10:37:13.563Z", "Size": 150 }    ] }