Skip to content

redshift: dynamically add key/value pairs to parameter groups and clusters #20656

@dontirun

Description

@dontirun

Describe the feature

This feature would allow users to use a helper method to directly add parameters to a ClusterParameterGroup or indirectly through a Cluster.

Use Case

  1. I have several environments where I would like to conditionally add parameters to my cluster's parameter group based on environment specifics (dev,prod,etc)

  2. I have a construct for my customers where they supply their own Redshift cluster with their own configurations, but I would like to add certain parameters to the cluster parameter group for compliance reasons

Proposed Solution

  1. Add an addParameter method to IClusterParameterGroup

    • return a AddParameterResult (similar to AddToResourcePolicyResult) on whether the Key/Value was successfully added (would likey be false for a duplicate Key or Imported Parameter Group)
  2. Add an addToParameterGroup method to Cluster

    • If the cluster does not have an associated parameter group, create one
    • return a AddParameterResult (similar to AddToResourcePolicyResult) on whether the Key/Value was successfully added (would likey be false for a duplicate Key or Imported Parameter Group)

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.27.0

Environment details (OS name and version, etc.)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-redshiftRelated to Amazon Redshifteffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions