Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rds: cannot create RDS MySQL 8.4.3 #32933

Closed
1 task
Tietew opened this issue Jan 15, 2025 · 3 comments · Fixed by #32934
Closed
1 task

rds: cannot create RDS MySQL 8.4.3 #32933

Tietew opened this issue Jan 15, 2025 · 3 comments · Fixed by #32934
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@Tietew
Copy link
Contributor

Tietew commented Jan 15, 2025

Describe the bug

While creating RDS MySQL instance version 8.4.3, CloudFormation failed with following error:

Resource handler returned message: "The parameter group xxxxxxxx with DBParameterGroupFamily mysql8.0 can't be used for this instance. Use a parameter group with DBParameterGroupFamily mysql8.4.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

N/A

Expected Behavior

An RDS MySQL instance version 8.4.3 is successfully created.

Current Behavior

Unable to create an RDS MySQL instance version 8.4.3.

Reproduction Steps

Deploy RDS MySQL instance with custom parameters:

new rds.Instance(this, 'MySQL84', {
  engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_4_3 }),
  vpc: vpc,
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE4_GRAVITON, ec2.InstanceSize.MICRO),
  parameters: { time_zone: 'Asia/Tokyo', require_secure_transport: '1' },
});

Possible Solution

rds.MysqlEngineVersion.VER_8_4_3 is defined as MysqlEngineVersion.of('8.4.3', '8.0') includes wrong major version.
So the parameter group with DBParameterGroupFamily mysql8.0 is being created.

Additional Information/Context

WORKAROUND: use rds.MysqlEngineVersion.of('8.4.3', '8.4') instead of rds.MysqlEngineVersion.VER_8_4_3.

CDK CLI Version

2.175.1

Framework Version

2.175.1

Node.js Version

20.18.1

OS

Ubuntu

Language

TypeScript

Language Version

No response

Other information

Related #32257

@Tietew Tietew added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 15, 2025
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Jan 15, 2025
@pahud pahud self-assigned this Jan 15, 2025
@pahud
Copy link
Contributor

pahud commented Jan 15, 2025

Thank you for this report and your PR. Yes we should get it fixed.

@pahud pahud added the p2 label Jan 15, 2025
@pahud pahud removed their assignment Jan 15, 2025
@pahud pahud added effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jan 15, 2025
@mergify mergify bot closed this as completed in #32934 Jan 15, 2025
@mergify mergify bot closed this as completed in 3fbc785 Jan 15, 2025
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

1 similar comment
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants