Coder Social home page Coder Social logo

okta-awscli-java's People

Contributors

tom-smith-okta avatar

Stargazers

 avatar

Watchers

 avatar  avatar

okta-awscli-java's Issues

Support exporting / saving profiles

I like to use this docker image more like a script, having it update my AWS profile outside of the container:

docker run --rm \
  -v ~/.okta/config.properties:/root/.okta/config.properties \
  -v ~/.aws/:/root/.aws/ \
  -it tomsmithokta/okta-awscli-java:1.0.3 \
  "/bin/bash" "-c" "withokta aws $PROFILE_NAME sts get-caller-identity"

The nice thing is that this updates the AWS profile on my host and lets me run aws commands there without having to inject the okta profile argument into those commands. However, this doesn't keep the association of the target account with the target profile name (i.e. /root/.okta/profiles), nor does it keep the session cookie.

One simple approach to resolving this would be to mount not just the config.properties file, but the whole ~/.okta/ directory. Unfortunately, because the bash_functions and okta-aws-cli.jar both live in that directory, they get hidden if the whole directory is mounted.

Could those files live elsewhere in the container? In the mean time, I'm stuck with having to create them before hand and mount them individually.

Problems running this

The latest version of the assume role tool opens a web browser. This just doesn't work anymore. Should we consider this project closed, or any plans to make this work again?

Thanks.

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.