Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconaurora-global-cluster
file-type-iconaurora-with-cross-region-replica
file-type-iconaurora
file-type-iconefs
file-type-iconlambda-rds-snapshot-multiple-schedules
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconlambda-rds-snapshot
file-type-iconrds-mariadb
file-type-iconrds-mysql
file-type-iconrds-postgres
file-type-iconrds-sqlserver
file-type-iconrds-with-replicas
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc

Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconaurora-global-cluster
file-type-iconaurora-with-cross-region-replica
file-type-iconaurora
file-type-iconefs
file-type-iconlambda-rds-snapshot-multiple-schedules
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
file-type-iconlambda-rds-snapshot
file-type-iconrds-mariadb
file-type-iconrds-mysql
file-type-iconrds-postgres
file-type-iconrds-sqlserver
file-type-iconrds-with-replicas
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-icon.pre-commit-config.yaml
file-type-iconCODEOWNERS
file-type-iconLICENSE.txt
file-type-iconREADME.adoc
RDS

RDS

Terraform code and scripts for deploying data-storage resources (e.g. databases, cache) in AWS

Code Preview

Preview the Code

mobile file icon

README.md

down

RDS Lambda Snapshot Multiple Schedules Example

This folder contains examples of how to configure multiple snapshot schedules using:

  1. The lambda-create-snapshot module to take periodic snapshots of an RDS DB, once weekly and once hourly.
  2. The lambda-cleanup-snapshots module to delete old snapshots with two different retention periods.

Note that to use this module, you must have access to the Gruntwork Continuous Delivery Infrastructure Package (module-ci). If you need access, email support@gruntwork.io.

How do you run this example?

To run this example, you need to:

  1. Install Terraform.
  2. Open up vars.tf and set secrets at the top of the file as environment variables and fill in any other variables in the file that don't have defaults.
  3. terraform init.
  4. terraform plan.
  5. If the plan looks good, run terraform apply.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?