Open Liroyal opened 1 year ago
This seems to be a blocker from cloudformation instead of CDK as I can confirm the AWS::RDS::DBClusterParameterGroup
is synthesized correctly according to the document sample. But for some reason cloudformation considers this an invalid parameter, which should be supported in Aurora Postgresql Version 14 according to this doc.
"myprefixcustomparametergroupBB1CF4E4": {
"Type": "AWS::RDS::DBClusterParameterGroup",
"Properties": {
"Description": "Cluster parameter group for postgres14",
"Family": "postgres14",
"Parameters": {
"rds.babelfish_status": "on"
}
},
"Metadata": {
"aws:cdk:path": "xxx-stack/my-prefix-custom-parameter-group/Resource"
}
I noticed the family of your parameter group is actually postgres14
, maybe it should be aurora-postgresql14
instead? This parameter seems to be for Aurora PostgreSQL only?
Thanks, Pahud, for your answer.
Replacing the engine version rds.PostgresEngineVersion.VER_14_6
with rds.AuroraPostgresEngineVersion.VER_14_6
doesn't work because rds.AuroraPostgresEngineVersion.VER_14_6
type is AuroraPostgresEngineVersion
which is a class that doesn't implement IEngine
, as expected by the ParameterGroupProps
interface.
Describe the bug
Provisioning an Aurora cluster using L2 constructs doesn't allow creating a custom parameter group with the parameter
rds.babelfish_status
set toon
.The code used:
Omitting the
parameterGroup
property from the cluster's CTOR allows deploying the stack successfully, using the default cluster's parameter group.Expected Behavior
The Aurora cluster should be deployed, configured with the custom parameter group defined in code, containing the parameter
rds.babelfish_status
set toon
.Current Behavior
A deployment time error occurs, with the error message:
Resource handler returned message: "Invalid / Unmodifiable / Unsupported DB Parameter: rds.babelfish_status" (RequestToken: 24e84d17-a330-a5ae-140f-c0e9e37b7fdf, HandlerErrorCode: InvalidRequest)
.Reproduction Steps
Deploy the below stack code:
Possible Solution
Make the
rds.DatabaseCluster
support accepting custom parameter groups with customized parameter values.Additional Information/Context
No response
CDK CLI Version
2.93.0 (build 724bd01)
Framework Version
No response
Node.js Version
18.17.1
OS
Windows 11
Language
Typescript
Language Version
5.1.6
Other information
No response