Replies: 1 comment
-
Hi @POnakS, sorry I'm confused what you mean by it having its own credential resolution system? This library still uses The idea of the library is to create instance of the service clients for the service interfaces using what ever configuration was given via Apologize if I'm missing understanding question. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I had high hopes for
AWSSDK.Extensions.NETCore.Setup
library, however ultimately it flips setup upside down. It doesn't really solve any problems, while adding its own.I would expect, that this library builds on top of existing conventions (i.e.
FallbackCredentialsFactory
), however it does not - what's even worse, it implements its own credential/endpoint resolution system, which breaks yourLet's say you have existing app using MassTransit, among other things. MassTransit creates
AmazonSqs
instance by itself, and there is no options to integrate this library there.To be more confusing, you have two different credential resolution systems - one used by AWS SDK (maybe you have even reconfigured that to use only what you need, and disable super confusing EC2 instance metadata credentials), and one from
AWSSDK.Extensions.NETCore.Setup
. You can kind of work around it by providingFallbackCredentialFactory.GetCredentails()
toAwsOptions.Credentials
, however you need to do it in every place you useAwsOptions
, so it's not a robust solution.Overall I would suggest to change the way this library works, and integrate into existing conventions (at least add its own resolver into
FallbackCredentialFactory
), to not confuse everyone by having multiple credential resolution systems. This applies to region endpoints / serviceUrls too.Beta Was this translation helpful? Give feedback.
All reactions