[RDS] manage tables and databases in CDK
See original GitHub issuev1: 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:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Good point, I agree. How do you handle that right now, just update the information in two places?