-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable Credential Chaining to Automatically Load SSO Profiles from INI config #2848
Comments
So this does work as follows
In a construct, not sure if the profile should pick it up? That is how the CLI works Digging into this some more, if a profile is passed the ini loader is called, which does not support SSO. Any objections to moving that to a chain? First a standard profile and fall back to a SSO profile |
Hi @exussum12 , Sorry for the long wait. We have discussed this as a team but are confused about the ask here. Thanks, |
Hi Assuming you have SSO set up called
The CLI works
for full clarity
set up from |
Hi @exussum12 thanks for the clarification. I updated the title to better reflect the request. Thanks, |
Describe the feature
I am hoping to follow this workflow
aws configure sso or aws sso login --profile=something
Commands on the AWS CLI work, I am hoping to be able to use the same profile (something in the case above) to be able to reuse in php scripts
Use Case
Removing long lived keys for local development
Proposed Solution
The sso logs to a few files (~/.aws/sso/cache)
These should be scanned when looking for a profile being passed current behaviour is
PHP Fatal error: Uncaught Aws\Exception\CredentialsException: 'something' not found in credentials file in /tmp/aws/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.php:826
Other Information
This should ideally work for rules assumed via other accounts. That has a seperate storage (.aws/cli/cache)
Acknowledgements
SDK version used
Latest
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)php 8.2
The text was updated successfully, but these errors were encountered: