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

feat(msk): support ServerlessCluster #32780

Merged
merged 20 commits into from
Feb 3, 2025
Merged

feat(msk): support ServerlessCluster #32780

merged 20 commits into from
Feb 3, 2025

Conversation

mazyu36
Copy link
Contributor

@mazyu36 mazyu36 commented Jan 7, 2025

Issue # (if applicable)

Closes #28709.

Reason for this change

L2 Construct for MSK Serverless is not supported.

Description of changes

Add ServerlessCluster class.

Describe any new or updated permissions being added

Nothing

Description of how you validated changes

Add unit tests and integ test.

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 January 7, 2025 15:19
@github-actions github-actions bot added effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2 distinguished-contributor [Pilot] contributed 50+ PRs to the CDK labels Jan 7, 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.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.84%. Comparing base (f004c7e) to head (c4db54e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #32780   +/-   ##
=======================================
  Coverage   80.84%   80.84%           
=======================================
  Files         236      236           
  Lines       14230    14230           
  Branches     2487     2487           
=======================================
  Hits        11504    11504           
  Misses       2442     2442           
  Partials      284      284           
Flag Coverage Δ
suite.unit 80.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
packages/aws-cdk 79.64% <ø> (ø)
packages/aws-cdk-lib/core 82.14% <ø> (ø)

@aws-cdk-automation aws-cdk-automation dismissed their stale review January 8, 2025 05:54

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

clientAuthentication: {
sasl: {
iam: {
enabled: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This property is required and cannot be false.
I tried deploying with enabled set to false, but the deployment failed with the following error:

A serverless cluster must use SASL/IAM authentication. (Service: Kafka, Status Code: 400, Request ID...

As a result, I have decided not to expose this property.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for your information.
All the CloudFormation documents are useless, and I wish something could be done about it.

Copy link
Contributor

@GavinZZ GavinZZ Jan 31, 2025

Choose a reason for hiding this comment

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

Can we add a TODO or some sort of comment here? My concern is that MSK team fix this issue and in the future if it supports IAM as disabled but something else as enabled, we know that this section of code needs to be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GavinZZ
Thank you. I have added a TODO comment.
Since MSK Serverless currently only supports IAM authentication, the inability to disable it seems to be the expected behavior.

https://docs.aws.amazon.com/msk/latest/developerguide/serverless.html

MSK Serverless requires IAM access control for all clusters. Apache Kafka access control lists (ACLs) are not supported.

If additional authentication methods are supported in the future, it may become possible to disable it.

@mazyu36 mazyu36 marked this pull request as ready for review January 8, 2025 07:16
@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 Jan 9, 2025
Copy link
Contributor

@badmintoncryer badmintoncryer left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I've made some comments.

clientAuthentication: {
sasl: {
iam: {
enabled: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for your information.
All the CloudFormation documents are useless, and I wish something could be done about it.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jan 10, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jan 10, 2025
@QuantumNeuralCoder QuantumNeuralCoder self-assigned this Jan 28, 2025
@mergify mergify bot dismissed GavinZZ’s stale review February 1, 2025 04:42

Pull request has been modified.

@mazyu36
Copy link
Contributor Author

mazyu36 commented Feb 1, 2025

@GavinZZ
Thanks. I've fixed it.

@mazyu36 mazyu36 requested a review from GavinZZ February 1, 2025 06:51
Copy link
Contributor

mergify bot commented Feb 3, 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).

@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Feb 3, 2025
Copy link
Contributor

mergify bot commented Feb 3, 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).

@mazyu36
Copy link
Contributor Author

mazyu36 commented Feb 3, 2025

@Mergifyio update

Copy link
Contributor

mergify bot commented Feb 3, 2025

update

☑️ Nothing to do

  • #commits-behind > 0 [📌 update requirement]
  • -closed [📌 update requirement]
  • -conflict [📌 update requirement]
  • queue-position = -1 [📌 update requirement]

@mazyu36
Copy link
Contributor Author

mazyu36 commented Feb 3, 2025

@Mergifyio refresh

Copy link
Contributor

mergify bot commented Feb 3, 2025

refresh

✅ Pull request refreshed

@mazyu36
Copy link
Contributor Author

mazyu36 commented Feb 3, 2025

@Mergifyio requeue

Copy link
Contributor

mergify bot commented Feb 3, 2025

requeue

❌ Command disallowed due to command restrictions in the Mergify configuration.

  • sender-permission >= write

@mazyu36
Copy link
Contributor Author

mazyu36 commented Feb 3, 2025

@Mergifyio update

Copy link
Contributor

mergify bot commented Feb 3, 2025

update

✅ Branch has been successfully updated

Copy link
Contributor

mergify bot commented Feb 3, 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).

@GavinZZ
Copy link
Contributor

GavinZZ commented Feb 3, 2025

@mergify update

Copy link
Contributor

mergify bot commented Feb 3, 2025

update

✅ Branch has been successfully updated

Copy link
Contributor

mergify bot commented Feb 3, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit 86ce155 into aws:main Feb 3, 2025
20 checks passed
Copy link
Contributor

mergify bot commented Feb 3, 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).

Copy link

github-actions bot commented Feb 3, 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 Feb 3, 2025
@mazyu36 mazyu36 deleted the msk-serverless branch February 3, 2025 22:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
distinguished-contributor [Pilot] contributed 50+ PRs to the CDK effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-msk-alpha: Add Support for MSK Serverless
5 participants