Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Bash-My-AWS – CLI Commands for AWS. Parent comment
The result is you have a simple set of commands that don't require you to type hundreds of characters.
instances() { local instance_ids=$(__bma_read_inputs) local filters=$(__bma_read_filters $@) aws ec2 describe-instances \ $([[ -n ${instance_ids} ]] && echo --instance-ids ${instance_ids}) \ --query " Reservations[].Instances[][ InstanceId, InstanceType, State.Name, [Tags[?Key=='Name'].Value][0][0], LaunchTime, Placement.AvailabilityZone, VpcId ]" \ --output text | grep -E -- "$filters" | LC_ALL=C sort -b -k 6 | column -s$'\t' -t }
There are no comments on this comment yet.
The result is you have a simple set of commands that don't require you to type hundreds of characters.