Skip to content

feat(rds): add standalone resource creation for ParameterGroup#37165

Merged
mergify[bot] merged 10 commits intomainfrom
gudipatg/main
Mar 18, 2026
Merged

feat(rds): add standalone resource creation for ParameterGroup#37165
mergify[bot] merged 10 commits intomainfrom
gudipatg/main

Conversation

@gudipati
Copy link
Copy Markdown
Contributor

@gudipati gudipati commented Mar 4, 2026

Issue # (if applicable)

Closes #9741

Reason for this change

Since #8959, ParameterGroup uses a lazy creation pattern where CloudFormation resources are only generated when the parameter group is bound to an instance or cluster (either explicitly via bindToInstance()/bindToCluster() or implicitly when passed to a DatabaseInstance/DatabaseCluster).

This change adds an explicit static methods ParameterGroup.forInstance() / ParameterGroup.forCluster() that allows users to create standalone parameter groups while maintaining the lazy instantiation pattern and backward compatibility.

Description of changes

Added two static factory methods to the ParameterGroup class similar to SingletonPolicy.forRole():

  • ParameterGroup.forInstance(): Creates a standalone instance parameter group (AWS::RDS::DBParameterGroup)
  • ParameterGroup.forCluster(): Creates a standalone cluster parameter group (AWS::RDS::DBClusterParameterGroup)

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Validated with new unit-tests and integ test

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions Bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 labels Mar 4, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team March 4, 2026 17:04
@mergify mergify Bot added the contribution/core This is a PR that came from AWS. label Mar 4, 2026
@mergify mergify Bot temporarily deployed to automation March 4, 2026 17:05 Inactive
@mergify mergify Bot temporarily deployed to automation March 4, 2026 17:05 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results48 ran48 passed
TestResult
No test annotations available

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ✅SkippedFailed
Security Guardian Results with resolved templates48 ran48 passed
TestResult
No test annotations available

@github-actions github-actions Bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. labels Mar 11, 2026
@gudipati gudipati marked this pull request as ready for review March 11, 2026 12:30
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 18, 2026

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).

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 18, 2026

Merge Queue Status

  • Entered queue2026-03-18 10:37 UTC · Rule: default-squash
  • Checks passed · in-place
  • Merged2026-03-18 11:21 UTC · at cffd0fbe76a41c4c3ed57b600ddeeaeedb52d213

This pull request spent 43 minutes 53 seconds in the queue, including 43 minutes 30 seconds running CI.

Required conditions to merge

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 18, 2026

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).

@mergify mergify Bot merged commit 5441a51 into main Mar 18, 2026
23 of 24 checks passed
@mergify mergify Bot deleted the gudipatg/main branch March 18, 2026 11:21
@github-actions
Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 18, 2026
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Mar 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aws-rds] ParameterGroup is missing from CloudFormation template

3 participants