Coder Social home page Coder Social logo

Comments (7)

gaul avatar gaul commented on September 6, 2024

Could you try setting the environment variable AWSR_DAEMON=True for the server and AWSR_CLIENT=True for the clients? I also could not get the auto-detection working and the explicit flags make more sense to me.

from aws-cli-repl.

captainfalcon23 avatar captainfalcon23 commented on September 6, 2024

Still doesn't work...

$ AWSR_DAEMON=True
$ echo $AWSR_DAEMON
True
$ awsr
Forking new awsr background process

from aws-cli-repl.

captainfalcon23 avatar captainfalcon23 commented on September 6, 2024

Any thoughts ... ?

from aws-cli-repl.

matt-horwood-mayden avatar matt-horwood-mayden commented on September 6, 2024

have had the same issue, try this
export AWSR_DAEMON=True;./awsr

then run this
export AWSR_CLIENT=True; ../aws-cli-repl/awsr ec2 describe-instances

from aws-cli-repl.

captainfalcon23 avatar captainfalcon23 commented on September 6, 2024

have had the same issue, try this export AWSR_DAEMON=True;./awsr

then run this export AWSR_CLIENT=True; ../aws-cli-repl/awsr ec2 describe-instances

Thanks but didn't work. Just hangs. Could you share exactly the steps you used to get this to work? Do you need to insall awscli via pip? Mine is currently installed via manual install from AWS.

from aws-cli-repl.

matt-horwood-mayden avatar matt-horwood-mayden commented on September 6, 2024

you have to run the first command in 1 terminal and the second in a new terminal, as the first acts as a server and the second is the client.

Make sure you have the botocore and awscli installed, I think I may have them installed with pip. I also have the awscli installed with brew

from aws-cli-repl.

captainfalcon23 avatar captainfalcon23 commented on September 6, 2024

Thanks!! I got it working now using python venv. It looks like awscli MUST be installed via pip to work. To be clear, this is what I did:

  1. Create a python venv and activate it
  2. Install awscli using pip into venv
  3. Run following command in terminal 1:
export AWSR_DAEMON=True;./awsr --profile XXX
  1. Run following command in terminal 2 to test:
./awsr ec2 describe-instances

I can see this simple command is already performing 5x faster! .2s compared to 1s.

from aws-cli-repl.

Related Issues (12)

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.