-
Notifications
You must be signed in to change notification settings - Fork 1
feat: DB builder component #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 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; | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
70b006e to
99feda2
Compare
ba8fd24 to
3e74298
Compare
# Conflicts: # src/v2/components/database/index.ts
b052530 to
63c1af7
Compare
This PR is the second one in order to resolve #70 and it will represent just the DB builder component.