-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Netwrok Load Balancer cant configure HTTPS health check protocol #3054
Comments
Hi @subratkprusty |
Upgrading provider did not help. subratprusty@xxxxx$ terraform init -upgrade Initializing provider plugins...
The following providers do not have any version constraints in configuration, To prevent automatic upgrades to new major versions that may contain breaking
Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see If you ever set or change modules or backend configuration for Terraform, 1 error(s) occurred:
|
I am using provider.aws: version = "~> 2.23", and I am still facing this issue, Let me know how the issue can be resolved or any workaround. |
I have fixed the issue, by setting below values, |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
While creating AWS NLB target group, can not configure health check in HTTPS protocol. The same can be configured in AWS portal.
resource "aws_lb_target_group" "main" {
name = "${format("%s-%s-%s-nlb-target-group", var.co_name, var.app_name, var.env)}"
port = 443
protocol = "TCP"
target_type = "ip"
vpc_id = "${var.vpc_id}"
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 10
port = "443"
protocol = "HTTPS"
path = "/index.html"
interval = 30
matcher = "200"
}
O/P-
Error: Error applying plan:
1 error(s) occurred:
Error: Error applying plan:
1 error(s) occurred:
module.nw_lb.aws_lb_target_group.main: 1 error(s) occurred:
aws_lb_target_group.main: Error modifying Target Group: InvalidConfigurationRequest: You cannot change the health check protocol for a target group with the TCP protocol
module.nw_lb.aws_lb_target_group.main: 1 error(s) occurred:
status code: 400, request id: 4571ee57-fc5a-11e7-96d7-e56a883382e9
The text was updated successfully, but these errors were encountered: