This is my first project using Serverless framework to create Line echo bot in AWS.
Release this project to help first time use this framework's developer!
- Line developer account
- Line Message API
- Install serverless via npm
$ npm install -g serverless
- Setup your AWS ceritficate
export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>
- Clone this project
$ serverless install --url https://github.com/louis70109/aws-line-echo-bot -n <YOUR_FILE_NAME>
$ cd <YOUR_FILE_NAME>/
- Insert you line bot secret & key
line_bot_api = LineBotApi('YOUR_CHANNEL_ACCESS_TOKEN')
handler = WebhookHandler('YOUR_CHANNEL_SECRET')
- Deploy the webhhok function
npm install
pip install -r requirements.txt
serverless deploy
Now you can test you chatbot, have fun!
Create by NiJia
This project is combine in serverless example project
The project is available as open source under the terms of the MIT License.