Skip to content

Commit fab6e01

Browse files
committed
Document invoke after deploy
1 parent 25dd6b5 commit fab6e01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ cp -v "config_$ENV.js" "config.js" \
198198
&& printf "###### DONE! ###### \n\n"
199199
```
200200

201+
## Post invoke script (example)
202+
If you wish to invoke your deployed AWS Lambda function, you can add the following as a `script` to your `package.json`:
203+
204+
```
205+
"invoke:remote": "aws lambda invoke --function-name myLambdaFnName --payload fileb://fixtures/hi.json invoked.json --log-type Tail | jq -r '.LogResult' | base64 --decode && rm invoked.json"
206+
```
207+
201208
## Prebuilt packages
202209
The `--prebuiltDirectory` flag is useful for working with Webpack for example. It skips `npm install --production` and `post_install.sh` and simply packages the specified directory.
203210

0 commit comments

Comments
 (0)