question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating Aurora Cluster with Postgresql fails

See original GitHub issue

I expected that by just changing engine and engineVersion I would get a Postgresql Cluster.

Reproduction Steps

Running CDK with db-stack that contains:

    this.cluster = new DatabaseCluster(this, 'ProductDatabase', {
      defaultDatabaseName: 'ProductDb',
      engine: DatabaseClusterEngine.AURORA_POSTGRESQL,
      engineVersion: '11.4',
      masterUser: {
        username: 'clusteradmin',
      },
      instanceProps: {
        instanceType: InstanceType.of(InstanceClass.BURSTABLE2, InstanceSize.SMALL),
        vpcSubnets: {
          subnetType: SubnetType.ISOLATED,
        },
        vpc: props.vpc,
      },
    })

fails with:

The Parameter Group default.aurora5.6 with DBParameterGroupFamily aurora5.6 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql11 (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 4ced8114-0f04-4659-9cde-c214db8638fa)

Clearly it’s not supposed to pick aurora5.6 group family with postgresql11 but I have no idea what I’m doing wrong so I expect this to be a bug.

Error Log

  6/14 | 10:02:08 AM | CREATE_FAILED        | AWS::RDS::DBCluster                         | ProductDatabase (ProductDatabase9844B02C) The Parameter Group default.aurora5.6 with DBParameterGroupFamily aurora5.6 cannot be used for this instance. Please use a Parameter Group with DBParameterGroupFamily aurora-postgresql11 (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: 4ced8114-0f04-4659-9cde-c214db8638fa)
	new DatabaseCluster (/home/vertti/dev/kesko/k-ruoka-product-service/node_modules/@aws-cdk/aws-rds/lib/cluster.ts:315:21)
	\_ new ProductDbStack (/home/vertti/dev/kesko/k-ruoka-product-service/lib/db-stack.ts:17:20)
	\_ Object.<anonymous> (/home/vertti/dev/kesko/k-ruoka-product-service/bin/product-service.ts:11:17)
	\_ Module._compile (internal/modules/cjs/loader.js:778:30)
	\_ Module.m._compile (/home/vertti/dev/kesko/k-ruoka-product-service/node_modules/ts-node/src/index.ts:530:23)
	\_ Module._extensions..js (internal/modules/cjs/loader.js:789:10)
	\_ Object.require.extensions.(anonymous function) [as .ts] (/home/vertti/dev/kesko/k-ruoka-product-service/node_modules/ts-node/src/index.ts:533:12)
	\_ Module.load (internal/modules/cjs/loader.js:653:32)
	\_ tryModuleLoad (internal/modules/cjs/loader.js:593:12)
	\_ Function.Module._load (internal/modules/cjs/loader.js:585:3)
	\_ Function.Module.runMain (internal/modules/cjs/loader.js:831:12)

Environment

  • CLI Version : 1.5.0
  • Framework Version: 1.5.0
  • OS : Ubuntu
  • Language : Typescript

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
vertticommented, Nov 20, 2019

Adding the folllowing to the cluster definition:

 parameterGroup: ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql11'),

gets you past the error message above. This should really by described in the documentation!

But after adding that I get a new error message:

RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.small, Engine=aurora-postgresql, EngineVersion=11.4, LicenseModel=postgresql-license. For supported combinations of instance class and database engine version, see the documentation. (Service: AmazonRDS; Status Code: 400; Error Code: InvalidParameterCombination; Request ID: dfb07895-5687-486e-a39e-49b0e59a170f)

From what I can find from AWS documentation, 11.4 is supported and db.t2.small is allowed for all Postgreqsql versions.

3reactions
konstantinjcommented, Feb 18, 2020

fyi: I’m having the same issue + also the port is 3306 instead of 5432 when choosing DatabaseClusterEngine.AURORA_POSTGRESQL and adding the mentioned parameterGroup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I unable to create an Aurora read replica for my RDS ...
In this case, an Aurora cluster is created with a reader instance. This cluster, called the Replica cluster, acts as a read replica...
Read more >
How to Create Amazon Aurora DB Cluster for PostgreSQL
If the primary DB instance fails , Aurora automatically fail over to a new primary DB instance.It will either create a new primary...
Read more >
How to create initial database on Amazon Aurora PostgreSQL ...
I have created a serverless DB cluster using
Read more >
AWS Aurora — Why is it better? - Crishantha Nanayakkara
When you create an Aurora MySQL/PostgreSQL instance, AWS creates three endpoints at ... If the current primary DB instance of a DB cluster...
Read more >
Upgrading the PostgreSQL DB engine for Aurora PostgreSQL
During the major version upgrade process, Aurora allocates a volume and clones the source Aurora PostgreSQL DB cluster. If the upgrade fails for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found