Log: disable cloudwatch logging when awsAccessKeyId not specified
This commit is contained in:
parent
d0fe06052e
commit
6496ff3576
@ -64,6 +64,10 @@ public static class ISetupBuilderExtension
|
||||
if (!string.IsNullOrEmpty(awsAccessKeyId))
|
||||
{
|
||||
awsTarget.Credentials = new Amazon.Runtime.BasicAWSCredentials(awsAccessKeyId, awsSecretAccessKey);
|
||||
}
|
||||
else
|
||||
{
|
||||
conf.RemoveTarget(targetName);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user