System Manager run command on windows e2 using eventbridge scheduler

I am running a Get-process command on windows ec2 instance using AWS Run Command’s Aws-RunPowershellScript document and it works successfully.

But when I am using a aws event bridge scheduler for the same I am getting the following error:

failed to run commands: fork/exec /usr/bin/pwsh: no such file or directory

It seems when Run command is invoked from scheduler it’s trying to run it assuming linux instance and not windows but not sure why.

Source: Windows Questions

LEAVE A COMMENT