https://github.com/Geekoosh/flyway-lambda
https://github.com/Geekoosh/flyway-lambda
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Geekoosh/flyway-lambda
- Owner: Geekoosh
- License: mit
- Created: 2019-10-08T19:58:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-08T15:01:21.000Z (over 1 year ago)
- Last Synced: 2024-08-03T22:22:46.993Z (8 months ago)
- Language: Java
- Size: 182 KB
- Stars: 23
- Watchers: 3
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Geekoosh/flyway-lambda - (Java)
README

Deploy Flyway as an AWS Lambda within your VPC with access to your RDS database.
## Migration files
flyway-lambda fetches the migration scripts from either a Git repo or from an S3 bucket.## Configuration
Lambda supports Flyway configuration via Lambda invocation json request, [environment variables](https://flywaydb.org/documentation/envvars) and [config files](https://flywaydb.org/documentation/configfiles).### Git
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](https://github.com/Geekoosh/flyway-lambda/wiki/Git-Configuration)For a full flyway-lambda deployment with a Git repo access check the [CloudFormation example](https://github.com/Geekoosh/flyway-lambda/tree/master/examples/flyway-git)
### S3
flyway-lambda can also pull the migration scripts from an S3 bucket. For more information, check [S3 Configuration](https://github.com/Geekoosh/flyway-lambda/wiki/S3-Configuration).
For a full flyway-lambda deployment with S3 bucket check the [CloudFormation example](https://github.com/Geekoosh/flyway-lambda/tree/master/examples/flyway-s3)### DB Support
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](https://github.com/Geekoosh/flyway-lambda/wiki/RDS-Configuration).
**Please note, don't use the configuration for DB in Flyway**### Flyway methods
flyway-lambda supports the full range of Flyway functionality, including migrate, info, baseline, clean, repair, and validate.
For more information, check [Flyway Configuration](https://github.com/Geekoosh/flyway-lambda/wiki/Flyway-Configuration).Flyway config files can also reside in s3 or within your git repo
## Logging
flyway-lambda logs to CloudWatch.
For more information, check [Logging](https://github.com/Geekoosh/flyway-lambda/wiki/Logging).## Contributing
Please read the [contributing guidelines](CONTRIBUTING.md) to set up your development machine and proceed.