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(redshift): multi AZ cluster #29976

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

Conversation

badmintoncryer
Copy link
Contributor

@badmintoncryer badmintoncryer commented Apr 26, 2024

Issue # (if applicable)

Closes #.

Reason for this change

AWS CDK cannot configure Redshift multi-AZ cluster.

Description of changes

Add multiAz to clusterProps.

Description of how you validated changes

I've added both unit and integ tests.

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 April 26, 2024 13:41
@github-actions github-actions bot added p2 star-contributor [Pilot] contributed between 25-49 PRs to the CDK labels Apr 26, 2024
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.

@aws-cdk-automation aws-cdk-automation dismissed their stale review April 26, 2024 14:06

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

@badmintoncryer badmintoncryer marked this pull request as ready for review April 28, 2024 15:28
@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 Apr 28, 2024
@badmintoncryer badmintoncryer marked this pull request as draft April 29, 2024 01:58
@badmintoncryer badmintoncryer changed the title feat(redshift-alpha): multi AZ cluster feat(redshift): multi AZ cluster Apr 29, 2024
@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 Apr 29, 2024
@badmintoncryer badmintoncryer marked this pull request as ready for review April 29, 2024 03:57
@badmintoncryer badmintoncryer marked this pull request as draft April 29, 2024 12:06
@badmintoncryer badmintoncryer marked this pull request as ready for review April 29, 2024 12:08
@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 Apr 29, 2024
Copy link
Contributor

@go-to-k go-to-k left a comment

Choose a reason for hiding this comment

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

Thanks for this PR. I made just some minor comments.

packages/@aws-cdk/aws-redshift-alpha/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts Outdated Show resolved Hide resolved
@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 May 1, 2024
badmintoncryer and others added 2 commits May 2, 2024 16:26
Co-authored-by: k.goto <24818752+go-to-k@users.noreply.github.com>
Copy link
Contributor

@go-to-k go-to-k left a comment

Choose a reason for hiding this comment

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

This comment (And it would be good to include an explanation for the need of the multiAz property.) has not been reflected yet, so it may be in the process of being corrected, but I wanted to comment first on what I noticed.

packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/lib/cluster.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-redshift-alpha/test/cluster.test.ts Outdated Show resolved Hide resolved
badmintoncryer and others added 4 commits May 2, 2024 20:09
Co-authored-by: k.goto <24818752+go-to-k@users.noreply.github.com>
Co-authored-by: k.goto <24818752+go-to-k@users.noreply.github.com>
@badmintoncryer
Copy link
Contributor Author

@go-to-k Thank you for your review!! I'm sorry that I've pushed temporary commits. I've addressed all your comments.

@go-to-k
Copy link
Contributor

go-to-k commented May 2, 2024

Oh... failed...

@go-to-k
Copy link
Contributor

go-to-k commented May 2, 2024

Oh... failed...

Succeeded! I'll check them.

Copy link
Contributor

@go-to-k go-to-k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the changes!

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label May 2, 2024
@badmintoncryer
Copy link
Contributor Author

Thank you always!

@shikha372 shikha372 self-assigned this May 3, 2024
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@@ -558,6 +565,17 @@ export class Cluster extends ClusterBase {
);
}

const nodeType = props.nodeType || NodeType.DC2_LARGE;
Copy link
Contributor

@shikha372 shikha372 May 10, 2024

Choose a reason for hiding this comment

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

do we need to specify it here if its already set as the default for this prop?

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 specification is not new.

https://github.com/aws/aws-cdk/pull/29976/files#diff-8666885f385d3c87fb98f835d762b86e7a98bfd217bd69c9a210041ab07585d6L577

And cloudformation requires this prop.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-nodetype

If we change this implementation, it will cause a breaking change. Therefore, I think it is better to keep it as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 pr/needs-maintainer-review This PR needs a review from a Core Team Member star-contributor [Pilot] contributed between 25-49 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants