Skip to content

Conversation

@mandryllo
Copy link
Collaborator

@mandryllo mandryllo commented Oct 31, 2025

Resolves #70

Tasks:

  • create db v2 component
  • add legacy prefix to the old component
  • switch to builder pattern
  • support blue/green deployments
  • make autoMinorVersionUpgrade option configurable
  • update VPC configuration
  • enable creation of custom parameter group
  • Resolve issue with snapshot
  • add integration tests (validate database creation, VPC integration, security groups, encryption, and configuration options)

@mandryllo mandryllo changed the title Feature: Migrate database to v2 feat: Migrate database to v2 Oct 31, 2025
opts: pulumi.ComponentResourceOptions = {},
) {
super('studion:Database', name, {}, opts);
super('studion:LegacyDatabase', name, {}, opts);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

*/
skipFinalSnapshot?: pulumi.Input<boolean>;
/**
* The allocated storage in gibibytes. Defaults to 20GB.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gibibyte, I like it. 👌 😂

On a serious note, we can drop comments where the name of the parameter is self-explanatory.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct abbreviation for gibibyte is GiB so the typo should be fixed.

Sorry for barging in, I get notified for all activity and couldn't resist on this one 😄

return encryptedSnapshotCopy;
}

private createDatabaseInstance(args: Database.Args) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid passing the whole argument bag, and instead make the parameters of each method explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Database to v2

4 participants