Skip to content

Add support for health check port and protocol version #63

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

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

nickreynke
Copy link
Contributor

This pull request includes updates to the README.md, main.tf, and variables.tf files to improve the configuration and functionality of the load balancer module. The most important changes include updating provider versions, adding support for protocol versions, and enhancing health check configurations.

Updates to Provider Versions:

  • README.md: Updated AWS provider to version 5.92.0 and Random provider to version 3.7.1.

Enhancements to Listener and Target Group Configurations:

  • README.md: Updated default HTTP and HTTPS listener configurations to include target_group_protocol and target_group_protocol_version fields. [1] [2]
  • main.tf: Added protocol_version to aws_lb_target_group resources for both HTTP and HTTPS target groups. [1] [2]

Health Check Configuration Improvements:

  • README.md: Added target_group_health_check_port to the health check configuration options.
  • main.tf: Included port in the health check block of aws_lb_target_group resources.
  • variables.tf: Introduced a new variable target_group_health_check_port with a default value of "traffic-port".

Added a new variable `target_group_health_check_port` to allow specifying the port for target group health checks. Updated the associated logic in `main.tf` to utilize this new variable, defaulting to "traffic-port". Updated documentation and README accordingly.
Introduced the `target_group_protocol_version` parameter for target groups, defaulting to "HTTP1". This enhances flexibility, allowing specification of HTTP1, HTTP2, or GRPC for protocol version.
@nickreynke
Copy link
Contributor Author

@jnonino If you have time please review this PR :) The checks are running successfully within our repository: https://github.com/datadrivers/terraform-aws-ecs-alb/actions

We need support for custom ports and protocol versions for health checks.

@jnonino jnonino added the enhancement New feature or request label Mar 27, 2025
@jnonino jnonino merged commit 4bcfd20 into cn-terraform:main Mar 27, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in CN Services - Terraform Modules Mar 27, 2025
@jnonino
Copy link
Member

jnonino commented Mar 27, 2025

Hi @nickreynke, approved, merged and released!!! Thanks for contributing!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants