Install serverless
npm install -g serverless
Copy .envrc
and add configurations.
cp .envrc.example .envrc
vim .envrc
npx sls invoke local -f fetchPrograms
With path parameters
npx sls invoke local \
-f fetchProgram \
--data '{ "pathParameters": { "name": "hoge" }}'