Closed Sourish1997 closed 4 months ago
Thanks for reporting!
For visibility here's the original rePost: https://repost.aws/zh-Hant/questions/QUSlf-efzmTnCWgy0zSp3erg/greengrass-installer-not-working-with-aws-sso-profile. For others interested, there are a few workarounds mentioned here.
We would prefer to not add more dependencies to Nucleus to support this, since installation is a one-off operation, and there are ways to use sso as linked above.
Describe the bug The Greengrass nucleus installer is unable to load AWS credentials when using AWS SSO profiles.
To Reproduce
~/.aws/config
and obtain temporary credentials usingaws sso login
.Expected behavior The Greengrass core software is successfully installed on the device.
Actual behavior The installer is unable to load AWS credentials. I get the following error:
Environment
Additional context This looks like a case where the installer is using an AWS SDK version that does not support SSO login. Would it be possible to update the dependencies to allow this use case? The developer guide points to "Manual credential refresh in Getting and refreshing temporary credentials in the IAM Identity Center user guide." as a recommended way to obtain temporary credentials for the Greengrass installer, which seems to imply that SSO login should be supported.