You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use alembic migration with this tool? I have an Aurora serverless cluster with generated secret, but serverless clusters are not public. It would be a huge step to migrate my db using alembic and data api.
Hey @tomeszmh - I was able to get alembic working, below are the steps I followed.
Currently I manage the revisions/migrations from my local machine. This assumes your machine is configured with the proper aws credentials. My goal is to get this into an automated CI/CD pipeline but haven't had an opportunity to tackle that yet.
Install & initialize alembic
pip install alembic
alembic init alembic
Update alembic.ini and set sqlalchemy.url to the correct connection string (e.g. sqlalchemy.url = postgresql+auroradataapi://:@/DATABASE)
env.py, update run_migrations_online to set connectable with create_engine instead of engine_from_config
Activity
mikeluby commentedon Jul 3, 2022
Hey @tomeszmh - I was able to get alembic working, below are the steps I followed.
Currently I manage the revisions/migrations from my local machine. This assumes your machine is configured with the proper aws credentials. My goal is to get this into an automated CI/CD pipeline but haven't had an opportunity to tackle that yet.
alembic.iniand setsqlalchemy.urlto the correct connection string (e.g.sqlalchemy.url = postgresql+auroradataapi://:@/DATABASE)env.py, updaterun_migrations_onlineto setconnectablewithcreate_engineinstead ofengine_from_configaurora_cluster_arnandsecret_arn