-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(rds): implement setting parameter group name #29965
feat(rds): implement setting parameter group name #29965
Conversation
0791219
to
dc040be
Compare
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Clarification Request: please let me know what README changes you think would be appropriate 🙂 |
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.
Hi @LaurenceWarne, thank you for the contribution!
Regarding your clarification request, you could update the README here by adding the new name
property to the sample code. It's a fairly simple change so that should be sufficient.
With regards to the integ test, I've pulled your code down and tested it an ran into the same issue. I was able to resolve it by doing 2 things:
- Delete the existing snapshot folder for that integ test
- Change the
rds.PostgresEngineVersion
to a supported version: ``rds.PostgresEngineVersion/VER_16_2and rerun the test with the
--update-on-failed` flag to regenerate the new snapshots.
Thanks for the guidance, should be done in the most recent commit! If you like I can raise an issue for the other integration tests that use the same deprecated version. |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
/** | ||
* The name of this parameter group. | ||
* | ||
* @default CloudFormation-generated name |
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.
* @default CloudFormation-generated name | |
* @default - CloudFormation-generated name |
Something I learned recently, if the value immediately after a @default
tag is not the actual value but rather a sentence describing the value, you need to separate it with a dash -
or else it would think that Cloudformation-generated
is the default value.
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.
This looks good, nice work @LaurenceWarne!
And no worries, I can create an issue to update the existing integ tests using the deprecated postgres versions. Thanks again!
@Mergifyio update |
❌ Mergify doesn't have permission to updateFor security reasons, Mergify can't update this pull request. Try updating locally. |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Cool 👍. Do you need me to merge main - looks to be an issue with mergify? |
@Mergifyio update |
☑️ Nothing to do
|
Reran, should hopefully work this time! |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
🎉 thanks! |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Reason for this change
I'd like to be able to set RDS parameter group names using CDK.
Description of changes
I've added a new field
name
toParameterGroupProps
used to populatedbClusterParameterGroupName
anddbParameterGroupName
where appropriate - AFAICS this couldn't be done at this level previously?Description of how you validated changes
I've altered a couple of unit tests and an integration test. However I'm unable to run the integration test as the postgres version in the existing snapshot is deprecated (I believe this needs to be deployed before the new snapshot?) which blocks me from deploying.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license