https://github.com/louis70109/line-notify-sqs-consumer
using AWS SQS and LINE notify
https://github.com/louis70109/line-notify-sqs-consumer
Last synced: 3 months ago
JSON representation
using AWS SQS and LINE notify
- Host: GitHub
- URL: https://github.com/louis70109/line-notify-sqs-consumer
- Owner: louis70109
- License: mit
- Created: 2019-08-24T07:25:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:29:40.000Z (over 2 years ago)
- Last Synced: 2025-10-05T01:53:16.920Z (3 months ago)
- Language: Python
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# LINE-Notify-SQS-Consumer
This project is using AWS SQS to send LINE Notify message.
# Bebore you start
- LINE Notify token [LINE document](https://notify-bot.line.me/doc/en/)
- AWS secret key
# Enviroments
- Python 3.7
- Node 12.4.0
- Npm 6.9.0
- Serverless 1.45.1
# Quick Start
1. Install serverless via npm
```bash=
$ npm install -g serverless
```
2. Setup your **AWS** ceritficate
```bash=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
```
3. Clone this project
```bash=
$ serverless install --url https://github.com/louis70109/line-notify-sqs-consumer -n
$ cd /
```
4. Replace LINE notify token and SQS Url in `sender.py`
```javascript=
output = {
message: sys.argv[1],
token: "Bearer YOUR_LINE_NOTIFY_TOKEN"
};
send_message(
(url = "YOUR_AWS_SQS_URL"),
(attr = {}),
(body = json.dumps(output))
);
```
5. Deploy the webhhok function
```bash=
npm install
pip install -r requirements.txt
serverless deploy
```
# Author
Create by NiJia
# License
The project is available as open source under the terms of the MIT License.