Git Product home page Git Product logo

bdrouvot / amazon-aurora-pgpool-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-aurora-pgpool-example

0.0 1.0 0.0 19 KB

A set of CloudFormation templates that demonstrates using pgool middleware to provide a single endpoint for both the primary and read replica instances of an Amazon Aurora PostgreSQL-compatible cluster.

License: MIT No Attribution

Shell 100.00%

amazon-aurora-pgpool-example's Introduction

Amazon Aurora Pgpool example

A set of CloudFormation templates that demonstrates using pgool middleware to provide a single endpoint for both the primary and read replica instances of an Amazon Aurora PostgreSQL-compatible cluster.

These CloudFormation (CFN) templates deploy an Aurora RDS PostgreSQL-compatible cluster with pgpool middleware. pgpool offers a single endpoint that directs traffic to the RDS cluster endpoint for writes and the RDS reader endpoint for reads.

The templates also set up a VPC with public and private subnets, security groups that limit communication, and an ELB to expose the pgpool instance externally.

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

Setup

We assume that you have the AWS CLI installed and configured. Create an S3 bucket to contain the CFN templates. We'll refer to this as templatebucket.

In the scripts create.sh and update.sh, review and update the parameters. You must put in your own SSH key name in the keyname parameter, and we strongly encourage you to change the AllowedCidrIngress from the default of 0.0.0.0/0.

Create the CFN stack

Run:

./create.sh templatebucket pgpool pgpoolstack us-west-2

Use your AWS region of choice if you don't want to run in us-west-2.

Updating the stack

You can run the following to update the stack if you change the configuration:

./update.sh templatebucket pgpool pgpoolstack us-west-2

Using the stack

Look for the stack output parameter Endpoint. You can use Endpoint:5432 as your PostgreSQL-compatible connection host.

amazon-aurora-pgpool-example's People

Contributors

jpeddicord avatar rddefauw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.