Skip to content

A Demo function to handle SNS messages in OpenFaaS

Notifications You must be signed in to change notification settings

affix/OpenFaaS-SNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Demo function to handle SNS messages in OpenFaaS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages