Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 854 Bytes

File metadata and controls

20 lines (15 loc) · 854 Bytes

OpenFaaS SNS Subscriber

This project is an OpenFaaS function to handle AWS SNS notifications and subscriptions.

How do I set this up

  • Deploy the function with faas-cli deploy -f openfaas-sns.yml
  • Deploy the OCR function from the openfaas store
  • Setup an AWS Topic
  • Add an HTTP(s) Subscriber pointing to your function
  • Setup an S3 Bucket to publish to the Topic
  • Upload an image with public access to the bucket
  • Watch the sns function logs

Caveats

  • The function return is not visible to SNS, this is intended to be used to trigger other functions or do background processing. (A simple usecase would be to subscribe to S3 Bucket changes, Then process the files uploaded to s3).