aws sam command not found on windows
Just some interesting code to remember
The Issue
When using git bash and aws sam cli on windows, i get "bash: sam: command not found" error.
The command sam
is not recognized as git bash
is not automatically expanding it to sam.cmd
.
My Solution
Creating an alias for "sam.cmd" as "sam":
echo "alias sam='sam.cmd'" >> ~/.bashrc