Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to AWS RDS with aws-sdk client #927

Open
sthuber90 opened this issue Mar 11, 2023 · 3 comments
Open

Connect to AWS RDS with aws-sdk client #927

sthuber90 opened this issue Mar 11, 2023 · 3 comments

Comments

@sthuber90
Copy link

I see that the migration requires a PostgreSQL client to handle the database calls. Would it be possible to extend the library to use the aws ask client to connect to an Aurora Serverless V1 database? This would make configuring a VPC, or opening the database up to the public obsolete and greatly reduce complexity in using node-pg-migrate to manage migrations on Aurora Serverless clusters on AWS.

@seyfer
Copy link

seyfer commented Mar 30, 2023

@sthuber90 I think you are describing a very specific use-case.
You need to use AWS CDK to manage infrastructure and deploy AWS RDS Aurora instance with CDK.
Then you can add to CDK outputs the newly deployed RDS URL and port. Or you can find them in AWS console.
Use these to set DATABASE_URL env variable as in this package readme.

@sthuber90
Copy link
Author

I got it working with node-pg-migrate. Just would want to be able to do it without having to use a VPC ;)

@pkit
Copy link

pkit commented Aug 18, 2023

@sthuber90 you can use https://github.com/marcgreenstock/data-api-suite
It has a pretty good migration tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants