Skip to content

ETL pipeline for generating pgBadger reports from RDS instances

Notifications You must be signed in to change notification settings

yoyowallet/rds-pgbadger-etl

Repository files navigation

rds-pgbadger-etl

ETL pipeline for generating pgBadger reports from RDS instances

Requirements

  • Python 3.6+
  • pipenv

Installation

pipenv install

Usage

Using local scheduler

You first need to install pgbadger.

For instance, in Linux simply run apt-get install pgbadger.

Then you can execute the script as:

$ AWS_ACCESS_KEY_ID="your_access_key" AWS_SECRET_ACCESS_KEY="your_secret_access_key" AWS_DEFAULT_REGION="db_region" python rds_pgbadger.py --target-s3-bucket "name_of_the_bucket" --database-instance-identifier "db_name" --reference-datetime "2019-04-01T10:00:00"

Example:

$ AWS_ACCESS_KEY_ID="your_access_key" AWS_SECRET_ACCESS_KEY="your_secret_access_key" AWS_DEFAULT_REGION="eu-west-1" python rds_pgbadger.py --target-s3-bucket "yoyowallet-prod2-rds-pgbadger-reports" --database-instance-identifier "prod2-v4-readreplica-1" --reference-datetime "2019-04-01T10:00:00"

About

ETL pipeline for generating pgBadger reports from RDS instances

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published