Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch processing from public bucket / subscribing to SNS topic #363

Open
adokter opened this issue Sep 21, 2020 · 2 comments
Open

batch processing from public bucket / subscribing to SNS topic #363

adokter opened this issue Sep 21, 2020 · 2 comments

Comments

@adokter
Copy link

adokter commented Sep 21, 2020

I've been using SCAR to batch process data from a public bucket that posts SNS notifications whenever new files are added

Currently SCAR handles S3 events, but not SNS events. I managed to add SNS functionality in an older version of SCAR (e.g. see here and here), but SCAR has evolved much and I'm no longer sure how to apply a patch myself. Therefore this feature request to be able to subscribe to an SNS topic and be able to batch process public buckets.

Thanks for developing SCAR!

@srisco
Copy link
Contributor

srisco commented Oct 17, 2020

Hi @adokter, sorry for the late reply.
We're studying the integration with SNS, but at the moment we are too busy and we think that it may be so specific functionality for your use case (the format of the notifications may vary). At the moment I can give you two ideas to implement it:

  • You can fork the FaaS Supervisor and add the functionality here. Currently you can't specify a custom repo for the supervisor in your function config, but if you open a PR we can create you a custom pre-release for testing purposes.
  • You can edit your user script in order to process the event as an UnknownEvent by reading it from $INPUT_FILE_PATH (with jq for example), and download the data from the public bucket with aws-cli.

Hope you can find it useful. If you have any doubt don't hesitate to contact us again, this time I will try to answer you faster.

Greetings.

@adokter
Copy link
Author

adokter commented Oct 20, 2020

Thanks very much @srisco for the pointers, I will look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants