flywaymigrationconstruct
Project description
AWS Lambda function with Flyway
Flyway --> Migrate/Evolve your database schema
Flyway is an opensource tool to evolve easily your db : https://flywaydb.org/
##Flyway Migration Construct This AWS CDK construct allows you to evolve your db schema with a lambda function.
The lambda function code is upload on "flywaymigrationconstruct" S3 bucket. The construct get the code on it according to the construct version.
You must pass arguments, most of them are optional and are params of our lambda function except two of them, which are environment variables.
Migration DB SecretManager
Migration DB SecretManager is the Secret of the DB that you want to manage with Flyway. It has to have 6 arguments :
username : the username of your DB
password : the password of your DB
engine : the type of your db (Redshift, Aurora MySQL, ...)
host: the host of your DB
port: the port of your DB
dbname: the name of your DB
Bucket Migration SQL
Bucket Migration SQL is the S3 Bucket where you will put your SQL files (warning : you have to comply with the naming pattern of Flyway).
Enable in Python and TS (maybe more soon):
PyPI: https://pypi.org/project/flywaymigrationconstruct/
npmjs: https://www.npmjs.com/package/flywaymigrationconstruct
NB :
Flyway Migration Construct manages authorizations of the lambda function for the secret and the bucket.
Warning : Version 0.2.0 only allows Redshift DB
##Credits:
Arnaud Przysiuda, internship at Necko Technologies. https://www.necko.tech/en/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for flywaymigrationconstruct-0.1.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e377d7d947e532798f58e0cf80ef963639e009f79088045eb5f94406e2b8ded |
|
MD5 | 1b53ea1062bc1317e3ef1d544fb837c2 |
|
BLAKE2b-256 | 22c2ce30b85157b5895bf2309ffc9c165c8c765667e1a2d5d25d95141b12baab |
Hashes for flywaymigrationconstruct-0.1.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca2b32b4e8e02123c260a45f62beb5899bc9b67ff564e0088eb5ef4af8321241 |
|
MD5 | 2d069d6d3aa7386ba39a2d97c70f9cdd |
|
BLAKE2b-256 | 324f876ef869110c9bf1055aa025b331225e3e6fb605ffdc2ee1fdc731413ec4 |