A Demo function to handle SNS messages in OpenFaaS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
faas-operator
openfaas-sns
.gitignore
README.md
openfaas-sns.yml

README.md

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