LINE Messaging API echo bot on AWS Lambda
-
Create Lambda function and API Gateway on AWS.
-
Install using npm.
$ npm install
-
Modify ChannelAccessToken and ChannelSecret
Get ChannelAccessToken and ChannelSecret from LINE Developer console.
Modify in index.js (Line #6 & Line #7).
-
Zip files and folders and upload to Lambda.
index.js
package.json
package-lock.json
node_modules/
-
Set webhook URL to LINE Developer console.
Get invoke URL in Lambda function.
looks like https://xxxxxxxxxx.execute-api.region.amazonaws.com/stage/functionname