CDK with SSO profile not working #21316
-
Since PR: #19454 and release v2.18.0 CDK is supposed to support SSO credentials via the AWS CLI v2 profiles. However no matter what I do I simply cannot get this to work. From going through 4 years of old threads to now I have attempted the following settings with 0 success.
Running When attempting to run any CDK commands however. I simply cannot make it work. AWS CLI version: 2.7.16 I have attempted a combination of all the following, either separately, mixed in all combinations and all at once. Exporting both the
I have tried with a deleted If I use When using any of the SSO methods as explained above without exporting credentials, I always get the following error message.
Running the command with full verbosity gives this output:
I do notice the ProcessCredentialsProviderFailure in the output, but this is not very informative on how to solve it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you try and specify environment variables for the account and region in your app.js file like
In python though I can use cdk with sso without setting the env variables inside my app.py file. |
Beta Was this translation helpful? Give feedback.
-
It turns out that the SSO implementation does not work if you are behind a corporate SSL inspection appliance such as ZScaler and you depend on AWS_CA_BUNDLE including the SSL inspection tools CA to avoid breaking SSL. AWS_CA_BUNDLE works fine with none SSO credentials, the AWS CLI etc, but just not with the SSO creds. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
It turns out that the SSO implementation does not work if you are behind a corporate SSL inspection appliance such as ZScaler and you depend on AWS_CA_BUNDLE including the SSL inspection tools CA to avoid breaking SSL.
AWS_CA_BUNDLE works fine with none SSO credentials, the AWS CLI etc, but just not with the SSO creds.
I have created a bug report on the issue.
#21328