Skip to main content

flywaymigrationconstruct

Project description

AWS Lambda function with Flyway

Flyway --> Migrate/Evolve your database schema

Flyway is an opensource tool to easily evolve your db : https://flywaydb.org/

Flyway Migration Construct

This AWS CDK construct allows you to scale your db schema with a lambda function.

The lambda function code is upload on S3 bucket "flywaymigrationconstruct". The construct retrieves the code on it according to the version of the construct.

You must pass arguments, most of which are optional and are parameters of your lambda function except two of them, which are environment variables.

warning: vpc, subnet and securitygroups are optional, but if one of them is provided, others must be too.

Migration DB SecretManager

Migration DB SecretManager is the Secret of the DB 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 the lambda function permissions for the secret and the bucket.

Warning : Version 0.3.0 only allows DB on Amazon Redshift, MySQL, PostgreSQL and SAP HANA.

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.2.45.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flywaymigrationconstruct-0.2.45-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file flywaymigrationconstruct-0.2.45.tar.gz.

File metadata

  • Download URL: flywaymigrationconstruct-0.2.45.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for flywaymigrationconstruct-0.2.45.tar.gz
Algorithm Hash digest
SHA256 de0cddc04faa31d173b1e6c9e317287c5219c3b6c576715b348dd4fd1e9fd433
MD5 32b6b71a20f4897ce37738d2fb21c015
BLAKE2b-256 c40e8fbda7d695294e68e3ded2e8fbb9db3b224841b1862f313a7474f2591144

See more details on using hashes here.

File details

Details for the file flywaymigrationconstruct-0.2.45-py3-none-any.whl.

File metadata

  • Download URL: flywaymigrationconstruct-0.2.45-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for flywaymigrationconstruct-0.2.45-py3-none-any.whl
Algorithm Hash digest
SHA256 966ee3bba5452ce9f6aa307a4f7f3306ed5fa68288c4ddc62eb245714a18a189
MD5 4e06bf7648b635993c5780bc7c9cb461
BLAKE2b-256 f5346d6c53d2ba0e58e40fcaef9b5243729d58bc1559f299562fac7789849718

See more details on using hashes here.

Supported by

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