victorskl / yawsso

Yet Another AWS SSO - sync up AWS CLI v2 SSO login session to legacy CLI v1 credentials
MIT License
304 stars 27 forks source link

Add exportvars feature #11

Closed brainstorm closed 4 years ago

brainstorm commented 4 years ago

For quickly reusing tokens on arbitrary machines and instances one might be working on.

This is unsafe and dangerous, only use if you know what you are doing ;)

codecov[bot] commented 4 years ago

Codecov Report

Merging #11 into master will decrease coverage by 2.61%. The diff coverage is 61.53%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master      #11      +/-   ##
===========================================
- Coverage   100.00%   97.38%   -2.62%     
===========================================
  Files            1        1              
  Lines          181      191      +10     
===========================================
+ Hits           181      186       +5     
- Misses           0        5       +5     
Flag Coverage Δ
#unittests 97.38% <61.53%> (-2.62%) :arrow_down:
Impacted Files Coverage Δ
yawsso/cli.py 97.38% <61.53%> (-2.62%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 797369d...8a24fbb. Read the comment docs.

brainstorm commented 4 years ago

Ideally this should work like this:

$ aws sso login && yawsso -e | pbcopy

Unfortunately, yawsso prints quite a lot of INFO via the builtin logger... I reckon it should not output anything to be more UNIX friendly?

victorskl commented 4 years ago

Ideally this should work like this:

$ aws sso login && yawsso -e | pbcopy

Unfortunately, yawsso prints quite a lot of INFO via the builtin logger... I reckon it should not output anything to be more UNIX friendly?

Right! Why do I forget about pipe use case!! 😄 Sure, I will improve logging mechanism.

Merging this. Thanks Roman.