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

(aws-cdk-lib/aws-ecs-patterns): Add ability to set healthCheck property for ApplicationLoadBalancedFargateService #28796

Closed
1 of 2 tasks
Nikola-Milovic opened this issue Jan 20, 2024 · 2 comments · Fixed by #28797
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@Nikola-Milovic
Copy link
Contributor

Describe the feature

Similar request as #15636

ApplicationLoadBalancedFargateService currently does not offer healthCheck options property

Use Case

I want to set custom healthcheck property on my container

Proposed Solution

Add the healthcheck property to ApplicationLoadBalancedFargateService and pass it to the container

https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-ecs-patterns/lib/fargate/application-load-balanced-fargate-service.ts#L83

Something like https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-ecs-patterns/lib/fargate/queue-processing-fargate-service.ts#L26 from QueueProcessingFargateServiceProps

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.94.0 (build 987c329)

Environment details (OS name and version, etc.)

22.04 Ubuntu

@Nikola-Milovic Nikola-Milovic added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jan 20, 2024
@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Jan 22, 2024
@pahud
Copy link
Contributor

pahud commented Jan 22, 2024

Thank you for the PR.

@mergify mergify bot closed this as completed in #28797 Feb 6, 2024
mergify bot pushed a commit that referenced this issue Feb 6, 2024
…edFargateService` (#28797)

Closes #28796

Like with other `aws-ecs-pattern` high level constructs, some properties aren't exposed. For `aws_ecs_patterns`.`ApplicationLoadBalancedFargateService` this is `healthCheck` property of the container. 

There are already similar PRs #18219 for other constructs in the `aws_ecs_patterns` lib

*Note*:

I didn't add any test cases since `ApplicationLoadBalancedFargateService` does not seem to have them like the others do. I can maybe come back with another PR to add the test cases.

I didn't update the docs since it's a minor addition. And there is already an example for the `QueueProcessingFargateService` that uses the `healthCheck`, it might be redundant to add the same code example with different constructor name. 

----

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

github-actions bot commented Feb 6, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

TheRealAmazonKendra pushed a commit that referenced this issue Feb 9, 2024
…edFargateService` (#28797)

Closes #28796

Like with other `aws-ecs-pattern` high level constructs, some properties aren't exposed. For `aws_ecs_patterns`.`ApplicationLoadBalancedFargateService` this is `healthCheck` property of the container. 

There are already similar PRs #18219 for other constructs in the `aws_ecs_patterns` lib

*Note*:

I didn't add any test cases since `ApplicationLoadBalancedFargateService` does not seem to have them like the others do. I can maybe come back with another PR to add the test cases.

I didn't update the docs since it's a minor addition. And there is already an example for the `QueueProcessingFargateService` that uses the `healthCheck`, it might be redundant to add the same code example with different constructor name. 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
3 participants