Coder Social home page Coder Social logo

aws-cli-repl's People

Contributors

gaul avatar janakaud avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

aws-cli-repl's Issues

Add license

Could you add an explicit license to this project, preferably MIT or Apache v2? My employer does not allow me to contribute to projects without one.

Using query fails

have now got a working setup, but get an error when running

in terminal 1 export AWSR_DAEMON=True;./awsr to have a server run
in terminal 2 export AWSR_CLIENT=True; ../aws-cli-repl/awsr ec2 describe-instances --query 'Reservations[].Instances[].{Name: Tags[?Key==Name].Value | [0], ID: InstanceId, IP: PrivateIpAddress}'

Then in terminal 1 I get an error

Bad value for --query Reservations[].Instances[].{Name:: Invalid jmespath expression: Incomplete expression:
"Reservations[].Instances[].{Name:"
                                  ^

Support stdin

My tests have several commands of the form echo foo | aws s3 cp - s3://bucket. This hangs the daemon which does not expect stdin.

Invalid command causes daemon to exit

If you give a bogus command, e.g., aws asdf, the daemon exits. This behavior differs from a command with bogus arguments, e.g., aws s3 --fake-flag.

Explicit client and server modes

The psutil.process_iter logic doesn't work in my environment. The most obvious problem is looking at only python and not python2 or python3 but this is brittle in other ways. Instead could you have an explicit client and server mode, either via a flag or separate script names?

awsr never gets past "Forking new awsr background process"

ร am trying to run awsr using python 3 in WSL.

Added to path.

Try to execute:

[root@blah ~]# awsr
Forking new awsr background process

In another WSL window, if i run a command like:

awsr ec2 describe-instances

It just tries again to fork a new background process. Even if I try to fork the command in the background it doesn't work.

Not sure if it's something to do with WSL?

Oh, so close!

I love you for figuring this out, but I'm sadly running on Cygwin for one of my platforms, and it does not support the psutil python module.

I notice you only seem to use one function from it, though, psutil.process_iter(). I don't suppose there might be some way to do this using the os module instead?

Command 'awsr' not found

Hi! I have followed the two steps of the instruction (added to system path and made it executable), however, I am getting Command 'awsr' not found error. Can you please provide some info what could be the problem? Thanks!

Command not executing at all (TypeError: object of type 'NoneType' has no len())

Hi @janakaud,

I follow your instructions and when I run the command it always fails in the line 77 due to cmd being NoneType. Probably it is something pretty simple to solve.

My python version is 2.7.10

awsr ec2 describe-instances
Traceback (most recent call last):
  File "/Users/.../awsr_dir/awsr", line 77, in <module>
    if len(cmd) > 1 and cmd[0].endswith("python") and cmd[1] == sys.argv[0]:
TypeError: object of type 'NoneType' has no len()

I tried to use zsh and bash, both have the same problem.

Thank you!

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.