-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: does not support SSO authentication #15309
Comments
Exploring, I see that the variables are actually not set by AWS CDK : CDK_CLI_ASM_VERSION
CDK_CLI_VERSION
CDK_CONTEXT_JSON
CDK_DEFAULT_REGION
CDK_OUTDIR Those are the only CDK variables I see printed out |
I am experiencing a similar error when trying to bootstrap our pipeline. Some guidance would be appreciated. |
Hey all, I'm unable to reproduce this error. I'll try to research this and get back to you. @FenryrMKIII how did you configure your aws credentials? @c7bh1 exactly what error are you experiencing? |
I'm getting the error of "Unable to determine the default AWS account: ProcessCredentialsProviderFailure: Profile myProfileName did not include credential process" when running the bootstrap command (npx cdk bootstrap --profile myProfileName aws:///). In bin/mypipelinestack.ts I am instantiating the stack with an account id and region. My ~/.aws/credentials file looks like this: My ~/.aws/config file looks like this: We are also operating behind a company proxy. CDK CLI Version : 1.110.0 Our aws cli seems to be working fine as we can run commands like aws s3 ls --profile myProfileName |
On my side, credentials were setup through |
I am also having issues using |
Thanks for the additional info, I wonder if this has to do with the company proxy. @rix0rrr your help would be appreciated here |
This is saying: in order to assume the role
Also:
That does not seem like enough information for the credential provider to go on. I have to confess I don't know how SSO is supposed to work. If you start your day with |
I'm running into this today. It looks like aws/aws-sdk-js#3736 adds SSO support to aws-sdk, but it hasn't landed yet. Maybe things will just start working once it does? |
The only way I could get this to work was to manually create a So it looks like this :
I was able to get those information from my company SSO login portal... I don't know how to get those information from AWS CLI because they are hidden when issuing the command |
I just ended up using the tool |
Some more info, if it helps.
As you can see, besides the fact that it fails, it retries once every minute for 10 minutes to do so I'm happy to provide more details if it helps. |
Any news on this? I'm just beginning with CDK and attempting to bootstrap my lab development and production accounts. I use AWS SSO without an IdP; creating users and groups directly in SSO. On the CLI, I've configured SSO using profiles in my
Failing bootstrap looks like:
|
Hmm, looks like this might be a duplicate of #5455 |
This was just released in 2.18.0 and 1.150.0. Confirmed it's working for me now! |
Thanks @jessecollier, you're right! Here's the PR #19454 |
|
I am following the blog post here.
When issuing the command :
I get a
KeyError: 'CDK_DEFAULT_ACCOUNT'
in myapp.py
In order to try to understand the error I also ran :
and I see :
The region is correct so somehow the profile is taken into account but not the credentials. Note that the credentials work perfectly fine if I do for example :
Reproduction Steps
Copy the project :
Create a virtual environment with Python and install the dependencies e.g. using virtualenv and virtualenvwrapper :
finally, run the bootstrap command using your profile (and having performed whatever logging process this requires beforehand)
Note:
If you have an error with
"can't find python executable"
change"app": "python3 app.py",
in cdk.json to"app": "python app.py",
What did you expect to happen?
The command should work without any issue
What actually happened?
The command throws an error when reading the Python file because it can't find the account because it can't find the credentials process.
Environment
Other
I am behind a company proxy (Zscaler)
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: