Skip to main content

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

flywaymigrationconstruct-0.1.22.tar.gz (22.2 kB view hashes)

Uploaded Source

Built Distribution

flywaymigrationconstruct-0.1.22-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page