https://github.com/femiwiki/lambda
A simple lambda function which subscribes AWS SNS to ping Femiwiki's Discord webhook.
https://github.com/femiwiki/lambda
aws lambda rust
Last synced: 5 months ago
JSON representation
A simple lambda function which subscribes AWS SNS to ping Femiwiki's Discord webhook.
- Host: GitHub
- URL: https://github.com/femiwiki/lambda
- Owner: femiwiki
- License: agpl-3.0
- Created: 2020-12-27T08:22:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T10:19:40.000Z (over 1 year ago)
- Last Synced: 2025-03-29T10:24:17.646Z (over 1 year ago)
- Topics: aws, lambda, rust
- Language: Rust
- Homepage:
- Size: 240 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lambda
A monorepo of Femiwiki's AWS Lambda functions.
```bash
# You need musl toolchain, in Ubuntu:
sudo apt-get install musl-tools
# Install musl target
rustup target add x86_64-unknown-linux-musl
# Build
cargo build --release
# Make into zip file
cp target/x86_64-unknown-linux-musl/release/sns-discord bootstrap
zip -j lambda.zip bootstrap
rm bootstrap
# Publish
aws lambda update-function-code --function-name DiscordNoti \
--zip-file fileb://lambda.zip --publish --region us-east-1
aws lambda update-function-code --function-name DiscordNoti \
--zip-file fileb://lambda.zip --publish --region ap-northeast-1
```
---
The source code of _femiwiki/lambda_ is primarily distributed under the
terms of the [GNU Affero General Public License v3.0] or any later version. See
[COPYRIGHT] for details.
[gnu affero general public license v3.0]: LICENSE
[copyright]: COPYRIGHT