Programming using AWS .NET SDK

#1: “Hello World!” in the world of Visual Studio for MacOS [using AWS SDK]

[mydevelopment]
aws_access_key_id = <your_access_key_id_from_above>
aws_secret_access_key = <your_secret_access_key_from_above>
//Try this code on a non-Windows platform and you will see the above errorvar options = new CredentialProfileOptions
{
AccessKey = "access_key",
SecretKey = "secret_key"
};
var profile = new CredentialProfile("default", options);
profile.Region = RegionEndpoint.USWest1;
NetSDKCredentialsFile file = new NetSDKCredentialsFile();
file.RegisterProfile(profile);
var credProfileStoreChain = new CredentialProfileStoreChain();if (credProfileStoreChain.TryGetAWSCredentials("default", out AWSCredentials awsCredentials))
{
Console.WriteLine("Access Key: " + awsCredentials.GetCredentials().AccessKey);
Console.WriteLine("Secret Key: " + awsCredentials.GetCredentials().SecretKey);
}
Console.WriteLine("Hello World!");
Access Key: A..................Q
Secret Key: 8.......................................p
Hello World!

Insignificant part of a significant race which is insignificant in the grand scheme of significant things. Working @AWScloud. Views and humors are my own.