Log: disable cloudwatch logging when awsAccessKeyId not specified

This commit is contained in:
pavelbannov 2022-12-21 21:22:04 +03:00
parent d0fe06052e
commit 6496ff3576

View File

@ -64,6 +64,10 @@ public static class ISetupBuilderExtension
if (!string.IsNullOrEmpty(awsAccessKeyId))
{
awsTarget.Credentials = new Amazon.Runtime.BasicAWSCredentials(awsAccessKeyId, awsSecretAccessKey);
}
else
{
conf.RemoveTarget(targetName);
}
}