tom-smith-okta / okta-awscli-java Goto Github PK
View Code? Open in Web Editor NEWdocker image for running the java-based okta-aws-cli-assume-role
docker image for running the java-based okta-aws-cli-assume-role
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.
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.
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.