xombiemp / rds-copy-snapshots-lambda Goto Github PK
View Code? Open in Web Editor NEWMakes a copy of the most recent auto snapshot and deletes ones older than a set number of months
Makes a copy of the most recent auto snapshot and deletes ones older than a set number of months
Is this possible?
Unable to run on a daily basis or create multiple snapshots as it doesn't appear to be able to actually create a timestamp for a snapshot. Any ideas? Thanks!
An error occurred (DBSnapshotAlreadyExists) when calling the CopyDBSnapshot operation: Cannot create the snapshot because a snapshot with the identifier already exists.: DBSnapshotAlreadyExistsFault
Traceback (most recent call last):
File "/var/task/rds-copy-snapshots.py", line 113, in main
copy_snapshots(rds, snapshots_auto)
File "/var/task/rds-copy-snapshots.py", line 20, in copy_snapshots
TargetDBSnapshotIdentifier=newest['DBSnapshotIdentifier'][4:]
File "/var/runtime/botocore/client.py", line 253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/runtime/botocore/client.py", line 543, in _make_api_call
raise error_class(parsed_response, operation_name)
DBSnapshotAlreadyExistsFault: An error occurred (DBSnapshotAlreadyExists) when calling the CopyDBSnapshot operation: Cannot create the snapshot because a snapshot with the identifier already exists.
Hello, when i put in "all" for INSTANCES = ["all"]
it errors out and wont run, it will run when i give it an instance name, just not when i choose all, here is the log output
START RequestId: a4501243-e1c4-11e7-8c05-5567e56bdd5f Version: $LATEST
Processing Snapshots for instance: all
An error occurred (DBInstanceNotFound) when calling the DescribeDBInstances operation: DBInstance all not found.: DBInstanceNotFoundFault
Traceback (most recent call last):
File "/var/task/rds-copy-snapshots.py", line 137, in main
response = rds.describe_db_instances(DBInstanceIdentifier=instance)
File "/var/runtime/botocore/client.py", line 314, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/runtime/botocore/client.py", line 612, in _make_api_call
raise error_class(parsed_response, operation_name)
DBInstanceNotFoundFault: An error occurred (DBInstanceNotFound) when calling the DescribeDBInstances operation: DBInstance all not found.
END RequestId: a4501243-e1c4-11e7-8c05-5567e56bdd5f
REPORT RequestId: a4501243-e1c4-11e7-8c05-5567e56bdd5f Duration: 1420.47 ms Billed Duration: 1500 ms Memory Size: 128 MB Max Memory Used: 45 MB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.