Code Monkey home page Code Monkey logo

awsudo's People

Contributors

ammsa avatar bitglue avatar kian avatar ktilcu avatar rizkidoank 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awsudo's Issues

OSS License?

I'm packaging awsudo for inclusion in NixOS, and one of the bits of metadata required is which open-source license the project uses. It appears that there is currently no license or copyright declaration for the code in this repository. Would you consider adding one? Something as simple as dropping a copy of your preferred license's text in a LICENSE file would be sufficient.

Support profiles for awsrotate

It would be super convenient if awsrotate could rotate keys for any profile in the ~/.aws/credentials file,

[default]
aws_access_key_id = XXXX
aws_secret_access_key = YYYY

[rootaccount]
aws_access_key_id = ZZZZZ
aws_secret_access_key = QQQQQ

and then run awsrotate -u rootaccount to update the ZZZZZ and QQQQQ entries

How to assume role with specified expired time

using aws sts assume-role there is an option like --duration-second .
How to achieve this using awsudo ?
I was thinking I can set the expired time in the ~/.aws/config file like :

role_arn = arn:aws:iam::YOUR_ROLE
source_profile = YOUR_SOURCE_PROFILE
region = YOUR_REGION
duration =900

is this the correct way to do it ? since I can't confirm if this is working.

Runtime Failure on awscli 1.13+

getting the following error when attempting to run awsudo on newer versions of awscli python libraries.

Latest working version:

awscli-1.12.2
botocore-1.8.2

Failures start in following:

awscli-1.13.0
botocore-1.8.3

Specific message / issue:

# awsudo -u profile_name env
Traceback (most recent call last):
  File "/root/.local/bin/awsudo", line 9, in <module>
    load_entry_point('awsudo==0.0.0', 'console_scripts', 'awsudo')()
  File "/root/.local/lib/python2.7/site-packages/awsudo/main.py", line 68, in main
    run(args, resolver.getEnvironment(profile))
  File "/root/.local/lib/python2.7/site-packages/awsudo/config.py", line 16, in getEnvironment
    session.emit('session-initialized', session=session)
  File "/usr/lib/python2.7/site-packages/botocore/session.py", line 719, in emit
    return self._events.emit(event_name, **kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 227, in emit
    return self._emit(event_name, kwargs)
  File "/usr/lib/python2.7/site-packages/botocore/hooks.py", line 210, in _emit
    response = handler(**kwargs)
TypeError: attach_history_handler() takes exactly 2 arguments (1 given)

The 'attach_history_handler()' exists in the new history options of the aws-cli that started in that version.

'PyYAML<5.5,>=3.10' distribution was not found and is required by awscli

Hi , so I've just encountered an error when trying to execute awsudo command , the error is :
the 'PyYAML<5.5,>=3.10' distribution was not found and is required by awscli

and the command is :
awsudo env | grep AWS

this is output from command pip list , the PyYAML is there already :
Screen Shot 2022-08-31 at 12 04 23

I'm using macOS (zsh terminal) , I've tried several solutions from internet , and the error still persist , and I've tried the aws cli command and it's working fine.

Can anyone help me with this error ? Thank you!

Versions

Please have versions. We are using an older version of awscli and the latest commit broke.

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.