Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

aurora-postgresql DBParameterGroupFamily error #5

Closed
toneplex opened this issue Nov 12, 2019 · 3 comments · Fixed by #13
Closed

aurora-postgresql DBParameterGroupFamily error #5

toneplex opened this issue Nov 12, 2019 · 3 comments · Fixed by #13

Comments

@toneplex
Copy link

When selecting postgresql 10.7 I run into an issue

aws-rails-provisioner.yml
...
    db_cluster:
      engine: aurora-postgresql
      engine_version: 10.7
...

I'm getting the following error

11/28 | 4:36:11 PM | CREATE_FAILED | AWS::RDS::DBCluster | DBCluster (DBCluster15AF587F) The Parameter Group aws-rails-provisioner-default-aurora-postgresql with DBParameterGroupFamily aurora-postgresql9.6 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql10 (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: ...)

@toneplex
Copy link
Author

I was able to work around this by changing

const db = new rds.DatabaseCluster(this, 'DBCluster', {
            engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
            engineVersion: '10.7',
...
            parameterGroup: clusterParameterGroup,
        });

to

const db = new rds.DatabaseCluster(this, 'DBCluster', {
            engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
            engineVersion: '10.7',
...
            parameterGroup: {
                parameterGroupName: "default.aurora-postgresql10",
            },
        });

@toddwsullivan
Copy link

I think I'm getting a similar issue.

aws-rails-provisioner.yml
...
    db_cluster:
        engine: aurora-postgresql
        db_name: tsu_fargate
...

11/26 | 1:56:39 PM | CREATE_FAILED | AWS::RDS::DBCluster | DBCluster (DBCluster15AF587F) DBClusterParameterGroup not found: aws-rails-provisioner-default-aurora-postgresql (Service: AmazonRDS; Status Code: 404; Error Code: DBClusterParameterGroupNotFound; Request ID: 2cd0102a-9753-4d8a-8e6e-9976dd061977)

@mullermp
Copy link
Contributor

Hey - I'm sorry this is very late here; we've been short on hands the last 6 months. I've started picking up these issues. The current code seems to have a hand maintained switch case (https://github.com/awslabs/aws-rails-provisioner/blob/master/lib/aws-rails-provisioner/db_cluster.rb#L226). I'm thinking that this can actually be passed in via configuration and if not I will look to add that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants