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(route53): added EvaluateTargetHealth to Route53 Alias targets (#9481) #30664

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

Conversation

wladyslawczyzewski
Copy link

@wladyslawczyzewski wladyslawczyzewski commented Jun 25, 2024

Issue # (if applicable)

Part of a bigger piece of work for #9481
Another PR for this ticket #30739

Reason for this change

At this moment constructing the Route53 health checks is available only via L1 construct, this PR is one of the series to introduce the R53 health checks via higher-level constructs.

Description of changes

The underlying L1 construct of a few L2 constructs for Alias targets already has the EvaluateTargetHealth property, so by adding this prop to the L2 construct we get the quick win to introduce the health checks for Alias records.

Description of how you validated changes

  • unit tests
  • integration tests

Checklist


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

@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Jun 25, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team June 25, 2024 20:12
@github-actions github-actions bot added the p2 label Jun 25, 2024
@wladyslawczyzewski
Copy link
Author

hey guys, this is my first contribution to this repo, I would be grateful for any feedback 🤝

default configuration of Alias target health check
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 June 25, 2024 23:12

✅ 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 Jun 25, 2024
@wladyslawczyzewski wladyslawczyzewski changed the title feat(route53): added EvaluateTargetHealth to Route53 Alias targets feat(route53): added EvaluateTargetHealth to Route53 Alias targets (#9481) Jun 28, 2024
This was referenced Jul 1, 2024
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!

Could you also create integ tests for targets other than ALB and Global Accelerator?

/**
* Evaluate the target health
*
* @default - undefined
Copy link
Contributor

Choose a reason for hiding this comment

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

The default value is undefined, but could you describe what settings are applied when it is undefined?

Copy link
Author

Choose a reason for hiding this comment

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

hi @badmintoncryer , I've changed this to more descriptive information about the default value of this property. Could you please check and let me know what do you think?

}
constructor(
private readonly environmentEndpoint: string,
private readonly props: ElasticBeanstalkEnvironmentEndpointTargetProps = { evaluateTargetHealth: false },
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain why only the target for Beanstalk has false specified as the default value?

Copy link
Author

Choose a reason for hiding this comment

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

hi @badmintoncryer , thanks for your review. This change should be reverted in one of previous commits but looks like I missed that. Thanks for catching this!

…rget.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
…ncer-target.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
…-environment-target.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
…r-target.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
…get.ts

Co-authored-by: Kazuho Cryer-Shinozuka <malaysia.cryer@gmail.com>
@wladyslawczyzewski
Copy link
Author

hi @badmintoncryer thanks fro your review. I have applied the changes you suggested and added few more integration test cases. Could you please check these changes and let me know your thoughts?

@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 Nov 11, 2024
@badmintoncryer
Copy link
Contributor

@wladyslawczyzewski Thank you for your modification. I'll check and approve this PR later. Please wait for a while

@badmintoncryer
Copy link
Contributor

@wladyslawczyzewski Could you please add integ test for ElasticBeanstalkEnvironmentEndpointTarget? I plan to approve as soon as it’s added!

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@wladyslawczyzewski
Copy link
Author

hi @badmintoncryer I just added the test case for Elastic Beanstalk Environment target, please check it out!

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 p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants