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

Is an --all-regions flag in keeping with bash-my-aws design philosophy?

duncan-bayne opened this issue · comments

I'm currently bash-my-aws regions command to find EC2 instances in all regions:

for region in $(regions)
do
  instances --region "$region"
done

... but I was wondering whether I should open a PR to add --all-regions, which would allow me to replace the above with:

instances --all-regions

This is technically feasible of course, but is it desirable? Am I trying to go all cat -v on bash-my-aws? Need counsel from the BDFL here @mbailey :)

Perhaps the region-each command could achieve what you need ?

@ninth-dev How did I miss that? 🤦‍♂️

Thanks :)