Creating Aurora Cluster with Postgresql fails
See original GitHub issueI 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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Adding the folllowing to the cluster definition:
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:
From what I can find from AWS documentation, 11.4 is supported and
db.t2.small
is allowed for all Postgreqsql versions.fyi: I’m having the same issue + also the port is
3306
instead of5432
when choosingDatabaseClusterEngine.AURORA_POSTGRESQL
and adding the mentioned parameterGroup.