https://github.com/truffls/rds_snapshot_restore
Restoring and deleting snapshots to new rds instance for ad hoc development db with (nearly) live data
https://github.com/truffls/rds_snapshot_restore
Last synced: about 1 month ago
JSON representation
Restoring and deleting snapshots to new rds instance for ad hoc development db with (nearly) live data
- Host: GitHub
- URL: https://github.com/truffls/rds_snapshot_restore
- Owner: truffls
- License: mit
- Created: 2016-06-19T19:44:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-19T20:38:46.000Z (almost 9 years ago)
- Last Synced: 2025-03-27T18:46:51.179Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rds_snapshot_restore
Restoring and deleting snapshots to new rds instance for ad hoc development db
with (nearly) live dataPicks automatically the most recent snapshot from specified rds-instance to
restore this snapshot to a new instance. Either choose name on execution or configure
for easier access.
When done with work, easily delete the rds-instance again with one command.To prevent errors the tool prompts before every execution for confirmation!
## Requirements
- boto3 https://github.com/boto/boto3
- configured aws cli https://aws.amazon.com/cli/## Configuration
Configuration lies in `~/.rds_shapshoot_restore/config` and looks like the following
snippet (defaults):[DEFAULT]
db_instance_class = db.t2.medium
db_identifier_instance = test-db-automated
db_identifier_filter = None
automated_only = TrueMeaning:
- `db_instance_class` instance class for the new rds instance to restore to, see
[https://docs.aws.amazon.com//cli/latest/reference/rds/restore-db-instance-from-db-snapshot.html#options]
- `db_identifier_instance` name of the instance
- `db_identifier_filter` filter for snapshots of instances (optional)
- `automated_only` filter for automated snapshots only## Disclaimer
This tool is for development purposes and only manually tested. I do not take
responsibility for ANY errors when using this tool.This tool normaly works in close perimeter of your live data, I encurage you to read
the source to assess the risk for your usecase.