bash-my-aws / bash-my-aws

Bash-my-AWS provides simple but powerful CLI commands for managing AWS resources

Home Page:https://bash-my-aws.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

list buckets excluding timestamp

lc-eu2cloud opened this issue · comments

Hello,

I really like the tool. Perhaps this is asking too much, is it possible to add functionality that filters output of "buckets" command similar to --query Buckets[].Name? I noticed in the bma function for "buckets", the query includes both bucket name & creation date. If there's any way to exclude the creation date & just output the bucket name that would be great!

You can do this with:

buckets | cut -d' ' -f1

You could create an alias with:

alias buckets-nameonly="buckets | cut -d' ' -f1"