AWSConfigs.netstandard.cs vs AWSConfigs.bcl.cs vs AWSConfigs.cs #2087
-
I have a question about AWSConfigs.netstandard.cs vs AWSConfigs.bcl.cs vs AWSConfigs.cs. Background: We are using AWS C# .NET SDK in .NET 6.0 Blazor Server App. It is deployed to the EKS cluster. I have assigned the IAM role to the pod where we deployed our app. We are not able to access the secret key from the Blazor Server app (It works fine on our local machine). So I installed AWS CLI on that pod and test the IAM role. I am able to get the secert key using the AWS CLI on that pod but not from the Blazor Server app that we are using AWS .NET SDK. So I think something wrong with the SDK. I am reading the SDK code. I found that there are 3 classes AWSConfigs.netstandard.cs (https://github.com/aws/aws-sdk-net/blob/96d631d32d45478a4bfacbd832ee7835a28eaed8/sdk/src/Core/_netstandard/AWSConfigs.netstandard.cs) vs AWSConfigs.bcl.cs (https://github.com/aws/aws-sdk-net/blob/475822dec5e87954b7a47ac65995714ae1f1b115/sdk/src/Core/_bcl/AWSConfigs.bcl.cs) vs AWSConfigs.cs (https://github.com/aws/aws-sdk-net/blob/82ec756de374a6a2d0dce55df00b537a6929a577/sdk/src/Core/AWSConfigs.cs) and those classes are partial. If I am using .NET 6.0 from Blazor app on eks pod, which class will it use? If it's using this class (netstandard) https://github.com/aws/aws-sdk-net/blob/96d631d32d45478a4bfacbd832ee7835a28eaed8/sdk/src/Core/_netstandard/AWSConfigs.netstandard.cs, it returns null. So it might be the reason why it's not working. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@michaelsync Since your application is targeting .NET 6, it should use https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/_netstandard/AWSConfigs.netstandard.cs version. What specific method you are calling on |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@michaelsync Since your application is targeting .NET 6, it should use https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/_netstandard/AWSConfigs.netstandard.cs version. What specific method you are calling on
AWSConfigs
static class?