I'm beginning to work with Secrets Manager.
So, I created my first secret in AWS. During the process, it gave me some sample code to work with. I put that in a small application and ran it.
This is the code:
String region = "us-east-1";
string secret = "";
MemoryStream memoryStream = new MemoryStream();
IAmazonSecretsManager client = new AmazonSecretsManagerClient(RegionEndpoint.GetBySystemName(region));
GetSecretValueRequest request = new GetSecretValueRequest();
request.SecretId = "MySecretNameExample";
GetSecretValueResponse response = null;
response = client.GetSecretValue(request);
The problem is that 1) I was able to successfully retrieve the secret that I created and 2) nowhere am I creating a Credentials object with any valid AWS credential data. Where is this code getting the credential information from??