An open API service indexing awesome lists of open source software.

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.

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