Default credentials profile is not not read by Amazon.SimpleEmailV2 SDK for .net #2027
-
Describe the bugAs per the documentation at credential and profile resolution, the default credentials profile at Expected BehaviorIt should use the default profile as per the Current BehaviorException is thrown when trying to use the default credentials (see reproduction steps). However I have verified the default credential is correct by the following code: var netSdkStore = new NetSDKCredentialsFile();
netSdkStore.TryGetProfile("default", out CredentialProfile profile);
return profile; I get the correct access key and the secret key using above and I am able to make API calls. Reproduction Steps
Possible SolutionNo response Additional Information/ContextNo response AWS .NET SDK and/or Package version usedAWSSDK.SimpleEmailV2 3.7.1.88 Targeted .NET Platform.NET 6 Operating System and versionWindows 10 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @ThisIsArnab, Good evening. Few pointer:
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thank you @ashishdhingra that helped! Credentials were indeed read from Windows SDK Store. Checked using |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @ThisIsArnab,
Good evening.
Few pointer:
%USERPROFILE%\AppData\Local\AWSToolkit\RegisteredAccounts.json
. You may rename or move this file to a different location.AWS_PROFILE
set in your environment? If yes, please either remove it or update it with default profile.FallbackCredentialsFactory.GetCredentials()
? If these return credentials, could you check the source and credentials information to validate if the default credentials are returned?