question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RDS] manage tables and databases in CDK

See original GitHub issue

v1: specify a SQL file that describes the state of your databases etc, this would be similar to ruby on rails structure.sql file. Then you point CDK to the file, like fromAsset for ECS or lambda.

v2. manage the structure of your database directly in CDK, like DynamoDB tables are created in CDK

Use Case

The state of the RDBMS is part of the infrastructure as much as the size of the instance itself. It feels more natural to handle this in IaC than in your application code and run something like rake db:migrate on every deployment.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hoegertncommented, Aug 6, 2020

While I totally agree with schema design and the use of Liquibase, I still think that databases and users might be a good fit for CDK because I would need these resources in the following constructs as env variables for Lambda, Fargate, etc.

0reactions
jonny-rimekcommented, Aug 6, 2020

Good point, I agree. How do you handle that right now, just update the information in two places?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use AWS CDK to initialize Amazon RDS instances
Initialize databases with corresponding schema or table structures. Initialize and maintain users and permissions. Initialize and maintain ...
Read more >
Can you create AWS RDS Aurora tables using CDK?
I'm fairly new to AWS CDK, and I just created an architecture with an Aurora cluster inside of it. Is there a way...
Read more >
Provision an RDS Instance using the AWS CDK and Secrets
Today, I am going to show you how to provision an RDS instance using the AWS CDK. We will set up an AWS...
Read more >
DB Schema change management with the CDK Custom ...
This tool enables you to properly orchestrate your database schema changes based on migration files. You simply put all your schema update ...
Read more >
Using AWS CDK to create RDS Database Instance with C# ...
Amazon RDS also supports several different database engines, including PostgreSQL, MySQL, Oracle, and Microsoft SQL Server. What do we plan to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found