aws / aws/aws-cdk

RDS: Create multiple databases

Open
#13,588 21 comments 15 reactions 0 assignees View on GitHub
@aws-cdk/aws-rds effort/large feature-request needs-cfn p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

### Use Case

I have a Postgres instance with multiple databases. Ideally, I'd like to create the databases directly within the CDK.

### Proposed Solution

```kotlin
new DatabaseInstanceProps.builder()
.database(listOf("database_1", "database_2")
// Some more properties
.build()
```

### Other

As far as looking at the API, I don't see a way. I can just use the `databaseName("database_table_1")` function to create one database, but not a second.

Is there any workaround / other solution to create multiple database tables within the CDK?

* [ ] :wave: I may be able to implement this feature request
* [ ] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named in the issue. Start by reviewing the RDS DatabaseInstanceProps API and the existing databaseName behavior, then locate the related implementation and tests; done means one CDK database instance can create multiple PostgreSQL databases while preserving the current single-database behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, postgresql, typescript
Domain
cloud, databases, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.