Skip to content

Still being prompted for IDP and role even after specifying in profile section of okta.yaml #287

@jdispiritoae

Description

@jdispiritoae

Hi,
I have multiple Okta AWS configurations, but I'm trying to configure a profile to use a specific one, and a specific role.
I'm using version 2.5.0, I have the following config in my ~/.okta/okta.yaml file:


awscli:
profiles:
developer:
oidc-client-id: "0123456789abcdef"
org-domain: "mydomain.okta.com"
aws-iam-idp: "arn:aws:iam::0123456789012:saml-provider/MyProvider"
aws-iam-role: "arn:aws:iam::0123456789012:role/Developer"
write-credentials: true
open-browser: true

When I run okta-aws-cli --profile developer, it opens the browser, and I activate my device, next it proceeds to
show me all of my Idps, and then when I select an IDP, it prompts me for all of the roles I have access to instead of
using the one I have listed in here.

okta-aws-cli debug tells me the file is fine, it does warn me about mssinging an idps secton, but in the example documentation for this use case, there isn't an IDP section listed.

I've also tried passing all of these values on the command line with the same effect.

I'm under the impression that it should just give me the credentials I need without prompting for an IDP or a role.

I believe I'm doing everything correctly
Any help provided would be greatly appreciated.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions