diff --git a/src/LocalStack.AwsLocal/CommandDispatcher.cs b/src/LocalStack.AwsLocal/CommandDispatcher.cs index dcfa188..d958c9b 100644 --- a/src/LocalStack.AwsLocal/CommandDispatcher.cs +++ b/src/LocalStack.AwsLocal/CommandDispatcher.cs @@ -116,12 +116,16 @@ public void Run() processSettings.Arguments = builder; - string awsExec = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "aws.cmd" : "aws"; + string[] awsExec = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + ? new[] {"aws.exe", "aws.cmd"} + : new[] {"aws"}; + FilePath? awsPath = GetAwsPath(awsExec); if (awsPath == null) { - ConsoleContext.Current.WriteLine($"ERROR: Unable to find aws cli"); + ConsoleContext.Current.WriteLine( + $"ERROR: Unable to find aws cli. Executable name: {string.Join(',', awsExec)}"); EnvironmentContext.Current.Exit(1); return; }