You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't find any way to do that in v2, it looks like a lof ot the credentials logic is hidden, I don't have any controll on the chain order.
Now I need to use LoadDefaultConfig which forcing the order of the providers.
I could try to create a customer provider which chains providers together and try to Retreive them in order, however it means I need to write in hand providers like SharedCredentialsProvider or EnvProvider which are not exist in v2.
As a general feedback- I feel like there's a bit of mess in everything that related to the way we working with credentials in v2 sdk. Some logic belongs to credentials package, some to aws package (like the Credentials struct or CredentialsCache, like.. why CredentialsCache logic is not part of credentials package?), some to config.
It was much easier to work with when everything was under github.com/aws/aws-sdk-go/aws/credentials
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
How can I mimic this functionally from v1 sdk?
I couldn't find any way to do that in v2, it looks like a lof ot the credentials logic is hidden, I don't have any controll on the chain order.
Now I need to use
LoadDefaultConfig
which forcing the order of the providers.I could try to create a customer provider which chains providers together and try to
Retreive
them in order, however it means I need to write in hand providers likeSharedCredentialsProvider
orEnvProvider
which are not exist in v2.As a general feedback- I feel like there's a bit of mess in everything that related to the way we working with credentials in v2 sdk. Some logic belongs to
credentials
package, some toaws
package (like theCredentials
struct orCredentialsCache
, like.. whyCredentialsCache
logic is not part ofcredentials
package?), some toconfig
.It was much easier to work with when everything was under
github.com/aws/aws-sdk-go/aws/credentials
Beta Was this translation helpful? Give feedback.
All reactions