Open Visual Studio Code and open project-one folder.
project-one
Press Shift + Command + B and select npm: build - function-one
Shift + Command + B
npm: build - function-one
This will run tsc to transpile all the typescript files under the folder.
tsc
Press shift + command + P and select Tasks: Run Task and then selectnpm: sam - function-one
shift + command + P
Tasks: Run Task
npm: sam - function-one
Final screenshot shows that we are able to run the lambda function from VSCode.
Last updated 6 years ago