Deploy Flyway as an AWS Lambda within your VPC with access to your RDS database.
flyway-lambda fetches the migration scripts from either a Git repo or from an S3 bucket.
Lambda supports Flyway configuration via Lambda invocation json request, environment variables and config files.
flyway-lambda supports pulling migration scripts from a Git repo given Git repo, branch name, username, and password. The Lambda clones the repo on its storage and applies the migration scripts over the database. For more information, check the Git Configuration
For a full flyway-lambda deployment with a Git repo access check the CloudFormation example
flyway-lambda can also pull the migration scripts from an S3 bucket. For more information, check S3 Configuration. For a full flyway-lambda deployment with S3 bucket check the CloudFormation example
flyway-lambda supports updating MySQL and Postgres databases, including Aurora. For DB credentials use the Lambda invocation request object, environment variables or secrets manager. For more information, check RDS Configuration. Please note, don't use the configuration for DB in Flyway
flyway-lambda supports the full range of Flyway functionality, including migrate, info, baseline, clean, repair, and validate. For more information, check Flyway Configuration.
Flyway config files can also reside in s3 or within your git repo
flyway-lambda logs to CloudWatch. For more information, check Logging.
Please read the contributing guidelines to set up your development machine and proceed.