GithubHelp home page GithubHelp logo

write out credentials about aws-okta HOT 3 CLOSED

segmentio avatar segmentio commented on August 15, 2024
write out credentials

from aws-okta.

Comments (3)

dfuentes avatar dfuentes commented on August 15, 2024

We are unlikely to add this, since we don't want to encourage our developers to keep plaintext credentials. You may be able to work around this for your use case by doing:

$ aws-okta exec <your-profile> -- env

Then pulling the appropriate key/secret/security token from that output.

from aws-okta.

JustinPlute avatar JustinPlute commented on August 15, 2024

I stand by entirely what @dfuentes wrote, but just to extend his answer a little bit, I ended up doing this:

$ eval $(aws-okta exec dev-okta -- env | grep AWS - | sed 's/^/export /')
$ aws s3 ls

2018-07-09 10:54:16 sample-bucket
2018-06-22 16:12:37 random-bucket

You could even take this one step further and add that to your .bash_profile, etc.:

function expose_aws_creds() {
    eval $(aws-okta exec $1 -- env | grep AWS - | sed 's/^/export /')
}

Then just do:

$ expose_aws_creds dev-okta
$ aws s3 ls

That way you can easily swap between different profiles.

from aws-okta.

sstarcher avatar sstarcher commented on August 15, 2024

Ya, to make it easier I moved to a different tool that supports this workflow.

from aws-okta.

Related Issues (20)

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.