Added a S3 -> Webhook forwarder

This commit is contained in:
frikky
2021-09-04 21:30:52 +02:00
parent cd555c840c
commit cd45b9ef26
3 changed files with 44 additions and 0 deletions
@@ -0,0 +1,16 @@
#GOOS=linux go build main.go
zip s3_function.zip s3_function.py
WEBHOOK=https://shuffler.io/api/v1/hooks/webhook_eccf47b1-8f6a-49fc-b2b8-383365a22353
ROLE=arn:aws:iam::202262580068:role/service-role/shuffle-forwarder
REGION=us-east-1
BUCKETNAME=helo
aws lambda create-function \
--role $ROLE \
--region $REGION \
--function-name shuffler-webhook-forwarder-3 \
--zip-file fileb://s3_function.zip \
--runtime python3.9 \
--environment Variables={SHUFFLE_WEBHOOK=$WEBHOOK} \
--handler lambda_handler