Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```