Skip to content

Simple service connecting PostgreSQL notifications to Amazon SNS.

Notifications You must be signed in to change notification settings

matthewmueller/pg-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL Bridge

Simple bridge for PostgreSQL notifications

Bridge Support

Additional Features

  • Optional health checks to ensure that this service is operating normally
  • A Dockerfile to easily deploy this service to any docker-friendly cloud provider

Running this Service with config file

pg-bridge --conf bridge.json

Example Configuration

{
  "postgres": {
    "url": "postgres://user:pass@localhost:5432/database"
  },
  "routes": [
    "task.create http://requestb.in/1bpu3kl1",
    "task.update arn:aws:sns:us-west-2:1234:somewhere"
  ],
  "health": {
    "port": 5000,
    "path": "/health"
  }
}

Running this Service with environment variables

export PGBRIDGE='{"postgres": {"url": "postgres://user:pass@localhost:5432/database"},"routes": ["task.create http://requestb.in/1bpu3kl1", "task.update arn:aws:sns:us-west-2:1234:somewhere"], "health": {"port": 5000, "path": "/health"}}'

pg-bridge

Possible issues:

You may need to set the following AWS environment variables: AWS_REGION=eu-west-2 AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=...

TODO

  • SQS support

License

MIT

About

Simple service connecting PostgreSQL notifications to Amazon SNS.

Resources

Stars

Watchers

Forks

Packages

No packages published