Skip to content

Lima-e-Silva/mysqldump-lambda-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mysqldump-lambda-s3 💻

python lambda amazon s3

Create an AWS Lambda to backup MySQL databases into a S3 bucket.

🚀 Getting started

  1. Create a Lambda function with any Python version as runtime
  2. Make sure to assign a permission that allows files to be inserted into S3
  3. Create a Layer with mysqldump5.7-cli.zip
  4. Paste the code from lambda_function.py into your Lambda
  5. Setup your Environment Variables
  6. Done!

Environment Variables

  • HOST: from your MySQL database
  • PORT: from your MySQL database
  • DATABASE_NAME: from your MySQL database
  • PASSWORD: from your MySQL database
  • BUCKET_NAME: from your S3
  • BUCKET_FOLDER: from your S3

About

An AWS Lambda to backup mysql databases to S3 bucket

Topics

Resources

License

Stars

Watchers

Forks

Languages