Simple bridge for PostgreSQL notifications
- PostgreSQL → Amazon SNS
- PostgreSQL → HTTP Webhooks
- Optional health checks to ensure that this service is operating normally
- A Dockerfile to easily deploy this service to any docker-friendly cloud provider
pg-bridge --conf bridge.json
{
"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"
}
}
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=...
- SQS support
MIT