Skip to content

sjsiegel001/mysqldump-to-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda S3 mysqldump

AWS Lambda function which mysqldumps an RDS to S3

Installation

install node-lambda

npm install -g node-lambda

Usage

add configuration settings to env file.

Probably needs a lambda layer to run the aws command. mysqldump bin is included.

cp example.env .env

Deploy with node-lambda

node-lambda deploy

also add your environment variables in the lambda management console:

  • EXPORT_DB_HOST the RDS endpoint
  • EXPORT_DB_NAME the name of the database to dump
  • EXPORT_DB_USERNAME the username
  • EXPORT_DB_PASSWORD the password
  • EXPORT_S3_PATH the name of the destination S3 bucket

About

AWS Lambda function which mysqldumps an RDS to S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages