Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiabee/aws-lark-bot
Integration of AWS and Lark (AKA Feishu)
https://github.com/xiabee/aws-lark-bot
aws aws-lambda cloudwatch lark sns
Last synced: about 1 month ago
JSON representation
Integration of AWS and Lark (AKA Feishu)
- Host: GitHub
- URL: https://github.com/xiabee/aws-lark-bot
- Owner: xiabee
- Created: 2023-06-18T05:31:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T09:43:17.000Z (about 1 year ago)
- Last Synced: 2023-11-17T07:38:02.207Z (about 1 year ago)
- Topics: aws, aws-lambda, cloudwatch, lark, sns
- Language: Go
- Homepage:
- Size: 4.62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SecurityHub-Integration/GetSecurityHubFindings.go
Awesome Lists containing this project
README
# AWS-Lark-Bot
## 简介
通过 `AWS Lambda` 以及其他组件与飞书进行交互
## 通用使用方法
### 编译 GO 文件
```bash
go mod download
GOOS=linux GOARCH=amd64 go build -o main .
zip main.zip main
```### 上传 Lambda 函数
将刚刚打包出的 main.zip 上传至 AWS Lambda 中。
### 设置环境变量
需要设置一个名为 `WEBHOOK_KEY` 的环境变量,其值为自己的飞书机器人 webhook url 的最后哈希串。
例如某个机器人 webhook 为:`https://open.feishu.cn/open-apis/bot/v2/hook/abcdabcd-aaaa-bbbb-cccc-c4a8aa6ed91c`,那么需要设置一个值为 `abcdabcd-aaaa-bbbb-cccc-c4a8aa6ed91c` 的环境变量 `WEBHOOK_KEY`
## 特殊使用方法
见各目录的 README