Skip to content

Conversation

@mandryllo
Copy link
Collaborator

This PR is the second one in order to resolve #70 and it will represent just the DB builder component.

@mandryllo mandryllo added the enhancement New feature or request label Dec 2, 2025
@mandryllo mandryllo changed the title Create db v2 component Create db builder component Dec 2, 2025
@mandryllo mandryllo changed the title Create db builder component feat: DB builder component Dec 2, 2025
@mandryllo mandryllo removed the request for review from abasic December 4, 2025 14:36
Comment on lines 64 to 78
public useExistingParameterGroup(
parameterGroupName: pulumi.Input<string>,
): this {
this._parameterGroupName = parameterGroupName;

return this;
}

public withCustomParameterGroup(
customParameterGroupArgs: pulumi.Input<aws.rds.ParameterGroupArgs>,
): this {
this._customParameterGroupArgs = customParameterGroupArgs;

return this;
}
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to consolidate this with the method overload?
In that case we could have withParameterGroup that can receive args or name which should simplify developer experience as they don't have to think about which method to choose, or try to understand different methods.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with the overload approach, just one small note on that. We are dropping the parameter group creation from the Database component, so the builder should be updated to create a parameter group and pass its name to the Database component during the construction. This will also imply use of transformations to properly set the parent on the parameter group resource.

@mandryllo mandryllo force-pushed the feat/db-v2-builder branch 2 times, most recently from 70b006e to 99feda2 Compare December 8, 2025 10:05
@bornast bornast requested a review from droguljic December 10, 2025 20:48
@mandryllo mandryllo requested a review from bornast December 16, 2025 11:46
Base automatically changed from feat/db-v2-component to master December 16, 2025 11:56
@droguljic droguljic merged commit cec26db into master Dec 16, 2025
2 checks passed
@droguljic droguljic deleted the feat/db-v2-builder branch December 16, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Database to v2

5 participants