Skip to main content

Tool to allow for the management of aws rds aurora snapshots and clusters.

Project description

rds-snap

pip installable tool to allow user to manage AWS RDS Aurora snapshots/clusters.

Motivation

This opinionated tool is used for the following:

  • create snapshots of AWS RDS Clusters
  • share/copy snapshots between AWS accounts
  • restore AWS RDS Clusters from snapshots
  • destroy AWS RDS Clusters

TODO

  • refine logging
  • add tests

Installation

Using Pip

$ pip install rds-snap

Manual

$ git clone https://github.com/RingierIMU/rds-snap
$ cd rds-snap
$ python setup.py install/make install

This will install the tool.

Development

$ git clone https://github.com/RingierIMU/rds-snap
$ cd rds-snap
$ make dev

This will create an environment, format and build the tool.

Usage

The example shell script outlines some common uses.

Output

Sample output while recreating a cluster from and snapshot:

[2021-08-13 09:57:58,983] rds-snap [INFO] create_cluster_and_wait 268: Creating cluster my-workspace-example
[2021-08-13 09:58:00,073] rds-snap [INFO] create_cluster_and_wait 289: Waiting for cluster my-workspace-example to become available
[2021-08-13 10:17:38,209] rds-snap [INFO] create_cluster_and_wait 298: Cluster my-workspace-example ready in 19m:38s
[2021-08-13 10:17:38,710] rds-snap [INFO] create_instance_and_wait 546: Creating cluster instance my-workspace-example-instance-0
[2021-08-13 10:17:39,698] rds-snap [INFO] create_instance_and_wait 559: Waiting for cluster instance my-workspace-example-instance-0 to become available
[2021-08-13 10:23:57,238] rds-snap [INFO] create_instance_and_wait 568: Cluster instance my-workspace-example-instance-0 ready in 6m:18s
[2021-08-13 10:23:57,509] rds-snap [INFO] update_password_and_wait 308: Updating password for cluster my-workspace-example
[2021-08-13 10:24:01,644] rds-snap [INFO] update_password_and_wait 326: Waited for update command to propagate to cluster my-workspace-example in 4s
[2021-08-13 10:24:01,644] rds-snap [INFO] update_password_and_wait 330: Waiting for cluster my-workspace-example to become available
[2021-08-13 10:25:03,921] rds-snap [INFO] update_password_and_wait 338: Cluster my-workspace-example ready in 1m:02s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rds_snap-0.1.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rds_snap-0.1.3-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file rds_snap-0.1.3.tar.gz.

File metadata

  • Download URL: rds_snap-0.1.3.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rds_snap-0.1.3.tar.gz
Algorithm Hash digest
SHA256 20249c514f78b13a596076b3e214e2a87bbb9abb33e1f2a898cff4803c7a9bf8
MD5 6d448c406d3bac9b1b2b9b50d7753af8
BLAKE2b-256 4aae0fbc288bb6e61a6e1b034fcca107b6145331c7cb674a0f410c0180886d5c

See more details on using hashes here.

File details

Details for the file rds_snap-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: rds_snap-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rds_snap-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 877d65cb7bbde99b7cb04c1afce5ade42d682a500a38620c39b2be889e6c7df6
MD5 bef00f7e73cd7a79412c664ae29ad213
BLAKE2b-256 d7a98cf36ecb8fde5b36106fa54461ea1e313c7b1acc06539a0aeea29f5b575f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page