Skip to content

fix(mixins-preview): service exports are different then in aws-cdk-lib#36201

Merged
mergify[bot] merged 2 commits intomainfrom
mrgrain/fix/mixins-exports
Dec 2, 2025
Merged

fix(mixins-preview): service exports are different then in aws-cdk-lib#36201
mergify[bot] merged 2 commits intomainfrom
mrgrain/fix/mixins-exports

Conversation

@mrgrain
Copy link
Copy Markdown
Contributor

@mrgrain mrgrain commented Nov 25, 2025

Issue

Fixes #36210

Reason for this change

@aws-cdk/mixins-preview exports services as aws_s3 (note the underscore).
But aws-cdk-lib exports them as aws-s3 (note the dash).

The intention was to align how the exports are named for ease of future migration. Better to fix this now.

Description of changes

Renaming aws_<SERVICE> to aws-<service> and the required update of cdk-generate-synthetic-examples.

Describe any new or updated permissions being added

n/a

Description of how you validated changes

test pipeline

Checklist


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

@aws-cdk-automation aws-cdk-automation requested a review from a team November 25, 2025 22:29
@github-actions github-actions bot added the p2 label Nov 25, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 25, 2025
Copy link
Copy Markdown
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)

@mrgrain mrgrain added pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes labels Nov 25, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review November 25, 2025 22:34

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

@mrgrain mrgrain force-pushed the mrgrain/fix/mixins-exports branch from 96abbf7 to d1c42d4 Compare November 25, 2025 22:39
@mrgrain mrgrain added the pr/request-cli-integ-tests Request CLI integ tests to be run. You will need to review the code and approve the deployment. label Nov 25, 2025
@mrgrain mrgrain changed the title fix(mixins-preview): exports are different then in aws-cdk-lib fix(mixins-preview): service exports are different then in aws-cdk-lib Nov 25, 2025
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

➡️ PR build request submitted to test-main-pipeline ⬅️

A maintainer must now check the pipeline and add the pr-linter/cli-integ-tested label once the pipeline succeeds.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 25, 2025
@mrgrain mrgrain marked this pull request as draft November 26, 2025 00:02
Copy link
Copy Markdown
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

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

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 29, 2025
@mrgrain mrgrain force-pushed the mrgrain/fix/mixins-exports branch 2 times, most recently from c4ba55a to 86844ce Compare November 29, 2025 14:12
@mrgrain mrgrain marked this pull request as ready for review November 29, 2025 15:16
@mrgrain mrgrain added the pr/do-not-merge This PR should not be merged at this time. label Nov 29, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Nov 29, 2025
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Dec 1, 2025
@rix0rrr rix0rrr marked this pull request as draft December 1, 2025 16:11
@mrgrain mrgrain force-pushed the mrgrain/fix/mixins-exports branch from 86844ce to f8e09f3 Compare December 1, 2025 22:26
@mrgrain mrgrain force-pushed the mrgrain/fix/mixins-exports branch from f8e09f3 to b4b8896 Compare December 1, 2025 22:33
@mrgrain mrgrain marked this pull request as ready for review December 1, 2025 22:36

// @aws-cdk/mixins-preview/aws-s3 => `export * as aws_s3 from './aws-s3';`
if (!serviceIndexExports.find(e => e.includes(moduleConfig.name))) {
serviceIndexExports.push(`export * as ${moduleConfig.submodule} from './${moduleConfig.name}';`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need to change as well?

Suggested change
serviceIndexExports.push(`export * as ${moduleConfig.name} from './${moduleConfig.name}';`);

Copy link
Copy Markdown
Contributor

@vishaalmehrishi vishaalmehrishi Dec 2, 2025

Choose a reason for hiding this comment

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

Not sure why the suggestion formatting was messed up, but here's what I am referring to specifically:

export * as ${moduleConfig.submodule} -> export * as ${moduleConfig.name}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. These exported symbols are using _ in aws-cdk-lib (also symbols cannot have a - in their name). It's only the export paths that use -.

@mrgrain mrgrain removed the pr/do-not-merge This PR should not be merged at this time. label Dec 2, 2025
@mrgrain
Copy link
Copy Markdown
Contributor Author

mrgrain commented Dec 2, 2025

@Mergifyio refresh

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 2, 2025

refresh

✅ Pull request refreshed

@mrgrain mrgrain removed the pr/request-cli-integ-tests Request CLI integ tests to be run. You will need to review the code and approve the deployment. label Dec 2, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 2, 2025

Merge Queue Status Beta

✅ The pull request has been merged

This pull request spent 41 minutes 29 seconds in the queue, including 41 minutes 19 seconds running CI.
The checks were run in-place.

Required conditions to merge

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 2, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Dec 2, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 5858006 into main Dec 2, 2025
19 of 20 checks passed
@mergify mergify bot deleted the mrgrain/fix/mixins-exports branch December 2, 2025 19:18
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 2, 2025

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 Dec 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-test The PR linter will not require test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(mixins-preview): @aws-cdk/mixins-preview is using different exports than aws-cdk-lib

4 participants