makethunder / awsudo Goto Github PK
View Code? Open in Web Editor NEWsudo-like utility to manage AWS credentials
License: MIT License
sudo-like utility to manage AWS credentials
License: MIT License
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 :
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!
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.
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
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.
Please have versions. We are using an older version of awscli and the latest commit broke.
I have comments in file ~/.aws/credentials
. They starts with "#". When I do awsrotate
, I lose all comments in all sections.
I did small research and find this: Update INI file without removing comments, it is suggested to rewrite code from ConfigParser to ConfigObj.
Is it acceptable to replace one dependency to another, to support comments in ~/.aws/credentials
?
When using awsudo I can't run commands that require inline params/env values. e.g.:
awsudo -u production ADAPTER=kinesis PORT=5000 ./foo
- it returns as ADAPTER=kinesis command not found
It seems name of environment variable for aws region is different with aws-java-sdk
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.