Browse the Repo

file-type-icon.circleci
file-type-icon_docs
file-type-iconexamples
file-type-iconaurora-global-cluster
file-type-iconaurora
file-type-iconlambda-rds-snapshot
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
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
file-type-iconlambda-rds-snapshot
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvars.tf
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 Example

This folder contains examples of how to:

  1. Use the lambda-create-snapshot module to take periodic snapshots of an RDS DB.
  2. Use the lambda-share-snapshot module to share those snapshots with another AWS account.
  3. Use the lambda-copy-shared-snapshot module to make local copies of snapshots from external AWS accounts.
  4. Use the lambda-cleanup-snapshots module to delete old snapshots.

The code includes examples of Aurora on RDS and MySQL on RDS.

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 get.
  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?