Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudFormation Invalid / Unsupported DB Parameter: rds.logical_replication

While defining parameter group for an RDS cluster in CloudFormation like this:

"TestDBParameterGroup": {
      "Type": "AWS::RDS::DBParameterGroup",
      "Properties": {
        "Description": "my parameter group with logical replication on",
        "Family": "aurora-postgresql11",
        "Parameters": {
          "rds.logical_replication": true
        },
        "Tags": [
          {
            "Key": "hiya:billto:costcenter",
            "Value": "my-costcenter"
          },
          {
            "Key": "hiya:billto:product",
            "Value": "my-product"
          },
          {
            "Key": "hiya:billto:owner",
            "Value": "my-team"
          },
          {
            "Key": "hiya:operations:contact",
            "Value": "my-team"
          }
        ]
      }
    },
...

I get this error: Invalid / Unsupported DB Parameter: rds.logical_replication

When I list parameter groups on the console, this parameter exists. I have used it manually with RDS instances created by hand. I don't know why won't it recognize in CF. I've tried with both values true and 1.

Anyone knows if there's a problem with underscores or dots?

like image 737
Hunor Kovács Avatar asked May 20 '26 07:05

Hunor Kovács


1 Answers

You should be using AWS::RDS::DBClusterParameterGroup not AWS::RDS::DBParameterGroup.

rds.logical_replication is cluster level setting, not db instance setting.

like image 124
Marcin Avatar answered May 23 '26 22:05

Marcin