Skip to content

A simple lambda function which subscribes AWS SNS to ping Femiwiki's Discord webhook.

License

Notifications You must be signed in to change notification settings

femiwiki/lambda

Folders and files

NameName
Last commit message
Last commit date
Dec 27, 2020
Nov 2, 2024
Feb 1, 2025
Aug 14, 2021
Apr 11, 2022
Aug 14, 2021
Feb 1, 2025
Aug 14, 2021
Dec 28, 2020
Apr 11, 2022

Repository files navigation

lambda

A monorepo of Femiwiki's AWS Lambda functions.

# 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.