Health check paths are not supported for TCP health checks

0

I've been trying to create an elastic beanstalk environment, and I keep getting an error when eb tries to create the target group.

Creating target group failed Reason: Resource handler returned message: "Health check paths are not supported for TCP health checks (Service: ElasticLoadBalancingV2, Status Code: 400, Request ID: xxxxxxxx)" (RequestToken: xxxxxx, HandlerErrorCode: InvalidRequest)

If health check paths aren't allowed for TCP health checks , then what are you supposed to do since the default is set to / and the required length is 1 so you can't set it to empty?

Here is the part of my eb configuration that pertains to the nlb:

option_settings:
  aws:elbv2:listener:443:
    ListenerEnabled: "true"
Resources:
  AWSEBV2LoadBalancer:
    Type: AWS::ElasticLoadBalancingV2::LoadBalancer
    Properties:
      Scheme: internal
      Subnets:
        - subnet-xxxx
        - subnet-xxxx
        - subnet-xxxx
      Type: network
  AWSEBV2LoadBalancerListener:
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      Port: 443
      Protocol: TCP
  AWSEBV2LoadBalancerTargetGroup:
    Type: AWS::ElasticLoadBalancingV2::TargetGroup
    Properties:
      Port: 443
      Protocol: TCP
      VpcId: vpc-xxxx

2回答
0

In the link you shared it says that HealthCheckPath is not required so I'm not sure why you think it is required.

It also doesn't make sense in the context of TCP health check because the path is related to the HTTP(S) request.

AWS
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
  • It says in the docs, the default is / and the minimum is 1, so if you don't set it I assume it's set as 1, and if you try to set it empty, it wont work because it must be at least of length 1.

0

I ended up just switching the the health check to HTTPS on port 443, which removed the original problem. If anyone has the answer to the original problem and why that was happening though I'd still love to know.

Spencer
回答済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ