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.

DBClusterParameterGroup not found: default.aurora5.6

See original GitHub issue

Describe the bug My DatabaseCluster ist configured with engine: rds.DatabaseClusterEngine.AuroraMysql and no custom ClusterParameterGroup is configured.

The following Exception is thrown:

DBClusterParameterGroup not found: default.aurora5.6 (Service: AmazonRDS; Status Code: 404; Error Code: DBClusterParameterGroupNotFound;

To Reproduce

        new rds.DatabaseCluster(this, 'prodRdsCuster', {
            clusterIdentifier: 'rds-prod',
            engine: rds.DatabaseClusterEngine.AuroraMysql,
            instances: 1,
            port: 3306,
            defaultDatabaseName: 'app',
            masterUser: {
                username: 'admin'
            },
            instanceProps: {
                instanceType: new ec2.InstanceTypePair(ec2.InstanceClass.Burstable2, ec2.InstanceSize.Medium),
                securityGroup: rdsSecurityGroup,
                vpc: props.vpc,
                vpcSubnets: {
                    subnetType: ec2.SubnetType.Isolated,
                }
            },
            backup: {
                preferredWindow: '02:00-03:00',
                retentionDays: 21
            },
            preferredMaintenanceWindow: 'Sun:03:00-Sun:04:00'
        });

cdk deploy

Expected behavior Successful deployment

Version:

  • OS: MacOS Moave
  • Programming Language: TypeScript
  • CDK Version: 0.31.0

Workaround Create a ClusterParameterGroup with explicit family setting:

const rdsClusterPrameterGroup = new ClusterParameterGroup(this, 'rdsClusterPrameterGroup', {
            description: 'MySQL 5.7',
            family: 'aurora-mysql5.7'
}

and use it in your cluster with

parameterGroup: rdsClusterPrameterGroup

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
jogoldcommented, May 9, 2019

Also already experienced this.

I think this is a bug in RDS. The problem is that the default.xxx parameter groups (created by AWS) are created only after creating a instance/cluster in the console or using the API directly. So if you never created a instance/cluster this way in a region and you try to deploy with CloudFormation it will not find the default.xxx parameter group.

8reactions
joehillencommented, May 30, 2019

@jogold Incorrect. I just launched a cluster with a default parameter group

    this.db = new DatabaseCluster(this, "Database", {
      engine: rds.DatabaseClusterEngine.AuroraPostgresql,
      engineVersion: "10.7",
      masterUser: {
        username: "admin",
      },
      defaultDatabaseName: "main",
      instanceProps: {
        instanceType: new ec2.InstanceType("r5.large"),
        vpcSubnets: {
          subnetType: ec2.SubnetType.Private,
        },
        vpc,
      },
      storageEncrypted: true,
      parameterGroup: {
        parameterGroupName: "default.aurora-postgresql10",
      } as any,
    });

Note: The engineVersion props comes from my PR https://github.com/awslabs/aws-cdk/pull/2698

Read more comments on GitHub >

github_iconTop Results From Across the Web

awslabs/aws-cdk - Gitter
I guess whatever the default one is - I may have added some subnets to it ... DBClusterParameterGroup not found: default.aurora5.6 (Service: AmazonRDS; ......
Read more >
AWS::RDS::DBClusterParameterGroup - AWS CloudFormation
The AWS::RDS::DBClusterParameterGroup resource creates a new Amazon RDS DB cluster parameter group. For information about configuring parameters for Amazon ...
Read more >
describe-db-cluster-parameter-groups - AWS
Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description ...
Read more >
aws_rds_cluster_parameter_gro...
Provides an RDS DB cluster parameter group resource. ... "rds-cluster-pg" family = "aurora5.6" description = "RDS default cluster parameter group" parameter ...
Read more >
Does importing an AWS RDS Aurora 5.7 work in v0.11.7?
aurora-mysql5.7; the default parameter group for Aurora MySQL 1.x continues to be default.aurora5.6. The DB cluster parameter group family name ...
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