Giter Site home page Giter Site logo

d3b-cli-igor's People

Contributors

alubneuski avatar blackdenc avatar chris-s-friedman avatar devbyaccident avatar evans-g-crsj avatar gmd3b avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

d3b-cli-igor's Issues

Exception when $HOME/.aws is not present

In the event the ~/.aws directory is not present, igor will fail to populate ~/.aws/credentials with the following exception :

โžœ  d3b-cli-igor git:(main) ./igor awslogin
Available logins:
1) awslogin Mgmt-Console-Dev-include@373997854230
2) awslogin Mgmt-Console-Dev-D3b@538745987955
Please choose your option:
1
Traceback (most recent call last):
  File "/opt/homebrew/bin/saml-login", line 33, in <module>
    sys.exit(load_entry_point('auth0-login==0.6.1', 'console_scripts', 'saml-login')())
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/lib/python3.10/site-packages/auth0_login-0.6.1-py3.10.egg/auth0_login/aws/sts_command.py", line 116, in assume_role_with_saml
    cmd.run()
  File "/opt/homebrew/lib/python3.10/site-packages/auth0_login-0.6.1-py3.10.egg/auth0_login/aws/sts_command.py", line 92, in run
    write_aws_credentials(credentials, self.profile)
  File "/opt/homebrew/lib/python3.10/site-packages/auth0_login-0.6.1-py3.10.egg/auth0_login/aws/credentials.py", line 40, in write_aws_credentials
    with open(filename, 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/gmd3b/.aws/credentials'

Expected behaviour:
The directory is created prior to auth0_login/aws/credentials.py is invoked.

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.