Notify the SNS to chatwork.
git clone https://github.com/chatwork/lambda-sns-to-chatwork-function
cd lambda-sns-to-chatwork-function
echo '{
"token": "[ChatWork API Token]",
"roomId": [ChatWork Room ID],
"template": "[Notify Message]"
}' > config/local.json
npm install
npm start # Notify the example events
You will generate config/local.json.
| name | type | value |
|---|---|---|
| CHATWORK_API_TOKEN | string | ChatWork API Token |
| CHATWORK_SEND_ROOM_ID | int | ID of the room to be sent to the ChatWork |
| CHATWORK_MESSAGE_TEMPLATE | string | The format of the message to be sent to the ChatWork (e.g. <%- Message %>) |
Or please create a config/local.json
{
"token": "[ChatWork API Token]",
"roomId": [Send Room ID],
"template": "[Message format]"
}git clone https://github.com/chatwork/lambda-sns-to-chatwork-function.git- Generate
config/local.json - Run the
npm run archivetasks - It will upload the
archive.zipas Lambda Function - Add the SNS to the event source
wget https://github.com/chatwork/lambda-sns-to-chatwork-function/archive/0.0.0.zip- Generate
config/local.json zip 0.0.0.zip config/local.json- It will upload the
0.0.0.zipto S3 - To deploy the Lambda Function using the AWS Lambda Plugin
- To fork
- Add configuration value to
.travis.ymlofenv - Add
npm run templateto.travis.ymlofafter_success - Add deployment configuration to
.travis.yml(e.g. https://github.com/travis-ci/dpl#lambda)
MIT
Copyright (c) 2015 ChatWork.inc


