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

fix(rds): fix incorrect import/export combination check in AuroraMysqlEngineVersion.of() #33564

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

k1e1n04
Copy link

@k1e1n04 k1e1n04 commented Feb 23, 2025

Previously, AuroraMysqlEngineVersion.of() incorrectly determined whether import and export roles should be combined.

This caused inconsistent behavior when specifying engine versions manually using AuroraMysqlEngineVersion.of(...), leading to incorrect parameter settings in the DBClusterParameterGroup.

Issue #33562

Closes #33562

Reason for this change

The issue arises when specifying a custom Aurora MySQL version using AuroraMysqlEngineVersion.of(...).
The logic for determining whether import and export roles should be combined is incorrect.
It should be based on the major version.

This bug causes s3ExportBuckets to configure DBClusterParameterGroup incorrectly:

  • It adds .aurora_select_into_s3_role instead of .aws_default_s3_role
  • This behavior differs from using built-in versions like AuroraMysqlEngineVersion.VER_3_07_1

Description of changes

If the major version is not "5.7", _combineImportAndExportRoles is set to true

Describe any new or updated permissions being added

None.

Description of how you validated changes

  • Ran unit tests to confirm that the changes work as expected

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Sorry, something went wrong.

…ysqlEngineVersion.of()

Previously, `AuroraMysqlEngineVersion.of()` incorrectly determined whether import and export roles should be combined.

This caused inconsistent behavior when specifying engine versions manually using `AuroraMysqlEngineVersion.of(...)`, leading to incorrect parameter settings in the DBClusterParameterGroup.
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Feb 23, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team February 23, 2025 17:27
@github-actions github-actions bot added bug This issue is a bug. p2 labels Feb 23, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@aws-cdk-automation aws-cdk-automation dismissed their stale review February 23, 2025 18:15

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Feb 24, 2025
…ysqlEngineVersion.of

Previously, `AuroraMysqlEngineVersion.of()` incorrectly determined whether import and export roles should be combined.

This caused inconsistent behavior when specifying engine versions manually using `AuroraMysqlEngineVersion.of(...)`, leading to incorrect parameter settings in the DBClusterParameterGroup.
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: f03eedf
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_rds: DatabaseCluster s3ExportBuckets fails with AuroraMysqlEngineVersion.of(...)
2 participants