Git Product home page Git Product logo

lambda-rds-snapshot's Introduction

lambda-rds-snapshot

This is a Backup/Disaster recovery strategy to work with AWS RDS instances

How To Use

git clone https://github.com/krismorte/lambda-rds-snapshot.git

cd lambda-rds-snapshot

npm install serverless -g

npm install

  • Deploy na AWS

Replace you aws local profile on this line on serverless.yml

profile: <YOUR-AWS-PROFILE>

right below you will see the environment tag replace all your configuration and you can deploy your first version

sls deploy

RDS Snapshot Retention

AWS just keep automation shapshos for 35 days so to keep longer you need to create a new one or just copy an automation that will turn the result copy in manual, this last one is the stratey used here. But a manual snapshot is kept in the same region so if the region goes down? A second stratey is to copy some snapshots in other region. This project has 4 lambdas one to do backups daily and other to copy manual snapshot to another region the other 2 are to remove this snapshots in a certain date (couting in days). AWS Info link

You can set the backup retention period to between 0 and 35 days.

You can have up to 100 manual snapshots per region.

Aws also create a new solution called AWS BAckups thats pretty much do all this, was released in JAN/2020 and has some limitations to use as code.

Serverless

THis project was builded with Serverless.

lambda-rds-snapshot's People

Contributors

krismorte avatar

Watchers

 avatar  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.