by mike-bailey on 12/31/19, 2:48 PM with 63 comments
by mike-bailey on 12/31/19, 3:15 PM
Bash-My-AWS is a simple but extremely powerful set of CLI commands for managing resources on Amazon Web Services. They harness the power of Amazon's AWSCLI, while abstracting away the verbosity. The project implements some innovative patterns but (arguably) remains simple, beautiful, readable and easily extensible.
The project started in 2014 and while many hundreds of hours have gone into it, far less has gone into promotion.
I'm speaking about it at LinuxConf and have created a documentation site at https://bash-my-aws.org
by nahikoa on 1/1/20, 6:04 PM
Meta note: All things considered, Amazon has it pretty good. They put out a barely usable, bare-bones, but fully functional tool in awscli. Paying customers of AWS have to perform the engineering effort to make the API more usable, and some even open-source their projects like this. AWS is an incredible business model.
by m0zg on 1/1/20, 10:53 PM
Google cloud CLI offers all of this out of the box. Why Amazon wants to make such basic commands difficult, I'll never understand.
by wjoe on 1/2/20, 11:44 AM
One thing I've not been able to work out with bash-my-aws yet was how to easily switch between regions and accounts. I noticed you can use `region` on it's own to set the current default region, but I'm often working with multiple regions, and it'd be a pain to have to run `region us-west-1` separately each time I want to use a different region. I couldn't see a way to just specify a region for a given command (eg how you'd do `aws get-instances --region us-west-1`). I guess you could do this with the environment variable `AWS_DEFAULT_REGION=us-west-1 instances` but that's a bit verbose.
Similarly with AWS accounts, I use multiple AWS accounts, which are accessed with different access keys, which are defined as profiles in my ~/.aws/config. Normally I'd use these with the AWS CLI like `aws ec2 get-instances --profile production`, I couldn't see any way in the docs to use or set this?
by Terretta on 1/1/20, 4:32 PM
by TheSpiciestDev on 1/1/20, 5:45 PM
Does anyone here have any experience of (starting from scratch or with no AWS resources) setting up policies/users/resources/configurations via something similar to the Deployment Managers of GCP and Azure?.. preferably something declarative or via templates?
Bash-my-AWS looks like a great step towards the goal I have in mind but I may also just be unaware of other tooling or AWS capabilities.
by efitz on 1/2/20, 6:18 AM
by alpb on 1/1/20, 7:33 PM
by dopylitty on 1/1/20, 5:00 PM
by ak217 on 1/1/20, 7:23 PM
by iCarrot on 1/2/20, 7:43 AM
by pensatoio on 1/1/20, 3:56 AM