Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/int128/hello-serverless
Hello Serverless with ES2017 on AWS Lambda
https://github.com/int128/hello-serverless
es2017 javascript lambda serverless slack-webhook
Last synced: 19 days ago
JSON representation
Hello Serverless with ES2017 on AWS Lambda
- Host: GitHub
- URL: https://github.com/int128/hello-serverless
- Owner: int128
- License: apache-2.0
- Created: 2017-11-21T03:35:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T12:25:31.000Z (over 4 years ago)
- Last Synced: 2024-10-27T08:52:09.895Z (2 months ago)
- Topics: es2017, javascript, lambda, serverless, slack-webhook
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello Serverless
It just receive an event and send it to a Slack channel.
## Run on local
[Slack Incoming Webhook](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks) is required.
Install dependencies:
```sh
npm install
```Run a function:
```sh
export WEBHOOK=https://hooks.slack.com/...
npm run serverless -- invoke local -f hello
```## Deploy to Lambda
Configure credentials:
```sh
npm run serverless -- config credentials -p aws -k xxx -s xxx
```Deploy a function:
```sh
npm run deploy
npm run serverless -- invoke -f hello -l
```