<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VSCSA3Okta Classic EngineOkta Integration NetworkAnswered2024-05-10T22:20:56.000Z2016-08-12T19:44:07.000Z2016-08-12T19:44:07.000Z
AWS integration - switching roles via CLI
Has anyone else successfully performed/completed the AWS + Okta integration and figured out how to switch roles using the CLI?  I have successfully followed the integration guide published by Okta, and also integrated use of the CLI (https://support.okta.com/help/articles/Knowledge_Article/Integrating-the-Amazon-Web-Services-Command-Line-Interface-Using-Okta), but I am having trouble figuring out how to then successfully switch roles via the CLI.  Thanks.

  • j5v7c (j5v7c)

    Hi Tom,

     

    You don't really need to switch roles and you should be able to use the CLI as if you already was using that role (check the ./aws/credentials file to verify this).

     

    The assumption though is that your cross-account role set up in your "Identity" account is mapped to only one single role in the target account, because our tool will only take the first role mapped to your cross-account role and add an entry for it in the credentials file.

     

    Does this make sense? Don't hesitate to contact us directly at developers at okta dot com if you need further explanation.
    Expand Post
This question is closed.
Loading
AWS integration - switching roles via CLI