pod-babashka-aws
pod-babashka-aws copied to clipboard
When invoking sso it should not need creds
The sso client is special and does not need creds from profile, environment etc. When using sso - get credentials, sometimes I don't have creds yet.
;basically my issue is this:
(aws/invoke
(aws/client {:api :sso})
{:op :GetRoleCredentials
:request req})
-> now it says unable to fetch credentials, if I don't have credentials configured for the default profile
My kludge around this is that I configure a dummy profile and make a sso client like this:
(aws/client
{:api :sso
:credentials-provider (creds/profile-credentials-provider
"dummy_profile")})
same issue with cognitect lib https://github.com/cognitect-labs/aws-api/issues/207
OK, better to fix it upstream probably and then we can include the fix here.
What is the imports for this?
[cognitect.aws.credentials :as creds]
[cognitect.aws.client.api :as aws]
if jvm lib
and
[pod.babashka.aws :as aws]
[pod.babashka.aws.credentials :as creds]
with bb pod