Open chrnorm opened 4 weeks ago
When using Granted with Common Fate, when running the following command:
. assume --sso --sso-start-url https://example.awsapps.com/start --sso-region eu-west-1 --account-id 000000000000 --role-name MyRole
AWS_* credentials are not exported in the shell. Re-running the command a second time does export the credentials.
AWS_*
We need to handling for the --sso flags in Granted so that this command works the first time rather than requiring multiple runs.
--sso
Example Granted config to reproduce this issue:
$ cat ~/.granted/config DefaultBrowser = "CHROMIUM" CustomBrowserPath = "/usr/bin/chromium-browser" CustomSSOBrowserPath = "" Ordering = "" ExportCredentialSuffix = ""
An additional note: retrying the command immediately causes it to fail (this is because the account assignment has not yet completed provisioning). Retrying again after ~5s works.
When using Granted with Common Fate, when running the following command:
AWS_*
credentials are not exported in the shell. Re-running the command a second time does export the credentials.We need to handling for the
--sso
flags in Granted so that this command works the first time rather than requiring multiple runs.Example Granted config to reproduce this issue:
An additional note: retrying the command immediately causes it to fail (this is because the account assignment has not yet completed provisioning). Retrying again after ~5s works.