Giter Club home page Giter Club logo

bash-my-aws's People

Contributors

atward avatar azrupani avatar danielmudie avatar duncan-bayne avatar dushankw avatar finchd avatar holmesjr avatar itsjfx avatar jonhiggs avatar lucienboland avatar mbailey avatar michaelpotter avatar mrbitsdcf avatar ninth-dev avatar nitrocode avatar noemi-rea avatar rnhurt avatar silarsis avatar slmingol avatar tomberek avatar wlonkly avatar wtkm7 avatar xaostx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bash-my-aws's Issues

"instances i-xxxxxxxx" dies with error

~/Repos/bash-my-aws$ instances i-xxxxxxxx

Bad value for --query Reservations[].Instances[][InstanceId,[Tags[?Key==Name].Value][0][0]] i-13d381cd: Unexpected token: i: Parse error at column 72, token "i" (UNQUOTED_IDENTIFIER), for expression:
"Reservations[].Instances[][InstanceId,[Tags[?Key==Name].Value][0][0]] i-xxxxxxxx"

Using aliases doesn't work.

We must accept resources at the end of a line.

If you use an alias, you want your switches at the start and arguments at the end.

$ alias instances="instances --query 'Reservations[].Instances[][InstanceId]'"
$ instances i-aa500674
I will die

That fails because the resource must come before the --query switch. This needs to be changed for aliases to work correctly.

move lib/*-functions ./

The directory root is now clean and simple. Yay.
I'm still very drawn to the idea of putting the resource-functions scripts in the top level dir.
This would mean they're listed when someone hits the project page or checks out directory.
I feel like this would make them more accessible.
What do you think @jonhiggs ?

bash-my-aws(dev)$ ls
LICENSE   Makefile  README.md bin       doc       lib       test

cf_reasons should only return the latest failure

As far as I know, a stack will rollback as soon as anything fails, so there can only be a single failure per deploy. cf_reason should only return the latest failure, if there are more than one, the older are no longer relevant because they must be for previous deploy attempts.

change the output of asg-capacity

It's currently "desired, maximum, minimum". That's not a very intuitive order. minimum, desired, maximum is probably better.

I've set this to milestone 1 because it's a minor change and will be a breaking change if we fix it later.

things that we want

show list of all my stacks

  • filter that list (grep)
    show asgs for stack(s)
    show instances associated with asgs

rds_arn()

$INSTANCE_OUTPUT

everythings() --tags

__bma_read_input()

  • do all input parsing

output

  • --output json

README wrapping style

Are we doing soft or hard wrapping in the README.md? It's a bit muddled at the moment.

slurp.sh

Maybe this would be better as a documentation item rather than a script. Feels a little bit personal rather than global.

add timestamp to cf_events

I'm not sure how to read the list. Are the newest at the bottom (this is the opposite to the console)? How many updates are showed in the output and where do they start?

README.md update?

Hey Mike,
I completely missed the instance-functions until I was about to create my own functions using aws CLI. Maybe have some pointer about the instance-functions file in your README.md?

cf_asg_instances function has strange behavior

Hi Mike,

Just stumbled across a peculiar issue with cf_asg_instances function. When I do a cf_asg_instances some_stack on a CFN stack and all the ec2 instances in the stack is powered off, cf_asg_instances some_stack returns every single ec2 instance in the AWS account. And when I do a cf_asg_instance_ssh some_stack, I get ssh-ed into an ec2 instance that does not even belong to the stack at all.

Happy to provide more details if needed.

Add function of list all volumes an remove inactive volumes

bash-my-aws is a great project and save me a lot of typing and time during my daily routine job, but I think there could be more enhancements, for ex, the function to list all volumes, search volume and delete volum.

sometimes, there would be a case a lot of volumes got created and but not deleted on time, so you would see something like this:
image
and this:
image

most of volumes are at a 'available' status rather than 'in-use' status. those volumes could be safely removed.

So I want to add some functionality as below:

  1. Add a function to list all volumes, and could also sort volumes by category.
  2. remove all volums

I will fork you project and send a pull request later. thanks a lot.

Using aliases doesn't work.

We must accept resources at the end of a line.

If you use an alias, you want your switches at the start and arguments at the end.

$ alias instances="instances --query 'Reservations[].Instances[][InstanceId]'"
$ instances i-aa500674
I will die

That fails because the resource must come before the --query switch. This needs to be changed for aliases to work correctly.

"instances i-xxxxxxxx" dies with error

~/Repos/bash-my-aws$ instances i-xxxxxxxx

Bad value for --query Reservations[].Instances[][InstanceId,[Tags[?Key==Name].Value][0][0]] i-13d381cd: Unexpected token: i: Parse error at column 72, token "i" (UNQUOTED_IDENTIFIER), for expression:
"Reservations[].Instances[][InstanceId,[Tags[?Key==Name].Value][0][0]] i-xxxxxxxx"

Silent on success

Do we want to be unixy and be silent on success? What determines whether something is successful?

I'm talking about when we create, update and delete things?

plugins.d

Consider moving the functions into a directory named plugins.d/. This makes it clear to users that bash-my-aws is intended to be extended and makes it obvious how it's done.

Option to specify default query outputs

It would be nice for a user to define the output style of various commands. It's conceivable that someone may not find the default outputs of instances useful (I for one would prefer that the output was narrower).

This will mean we may get away with not fixing #43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.