Skip to content

matthewmueller/pg-bridge

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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