Skip to content

prateek2211/ceph-lambda-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ceph AWS Adapter

Simple Adapter that invokes AWS lambda or publishes messages to SNS topic (based on program flag provided) on receiving ceph bucket notification(or any http payload in general).

Prerequisites

AWS adapter uses standard CPP SDK provided by AWS, and lockfree queue available in boost library/

  • CMake
  • AWS SDK for C++
  • Boost

Build Instructions

  • Make sure that your aws credentials are stored in ~/aws/credentials or are present in the environment variables.
$ mkdir "build"
$ cd build
$ export CMAKE_PREFIX_PATH=<Path to SDK build directory>
$ cmake ../
$ make

Usage

Support for both lambda and SNS endpoints are added, which could be switched using appropriate flags.

Provide the mode of adapter as either lambda or sns

$ ./ceph-aws-adapter -m <Mode of adapter> -p <Port of the server>

Eg

$ ./ceph-aws-adapter -m lambda -p 8080

After running the binary, it's time to hit the endpoints with some message payload.

$ curl -X POST 'http://127.0.0.1:8080' --data '{"payload":"sample data"}'

About

Simple Adapter that invokes AWS lambda or publishes SNS messages on recieving ceph bucket notification

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published