2

been trying to to apply an update of health check path from "/" to "/pogi" via elastic beanstalk ebextension however no changes happening using these approach:

Resources:
  AWSEBLoadBalancer:
    Type: "AWS::ElasticLoadBalancing::LoadBalancer"
    Properties:
      HealthCheck:
        HealthyThreshold: 3
        Interval: 30
        Target: HTTPS:443/pogi
        Timeout: 5
        UnhealthyThreshold: 5

I even tried this one too:

option_settings:
  - namespace: aws:elb:loadbalancer
    option_name: LoadBalancerHTTPSPort
    value: "443"
  - namespace: aws:elasticbeanstalk:application
    option_name: Application Healthcheck URL
    value: "/pogi"

may I ask for your help and advise on anything I missed here?

Lagot
  • 639
  • 1
  • 9
  • 26

2 Answers2

0

may I ask for your help and advise on anything I missed here?

This could be due to precedence of config options. .ebextentions have low precedence, so if you set these settings using any other method (manually, aws cli, or used saved configurations), the .ebextentions will be ignored.

Marcin
  • 215,873
  • 14
  • 235
  • 294
0

From what I can find, there are two options: aws:elb:healthcheck or AWS::ElasticLoadBalancing::LoadBalancer HealthCheck.

I think the problem with your current code is that according to the docs, the values need to be strings and my need to be quoted.

Resources:
  AWSEBLoadBalancer:
    Type: "AWS::ElasticLoadBalancing::LoadBalancer"
    Properties:
      HealthCheck:
        HealthyThreshold: "3"
        Interval: "30"
        Timeout: "5"
        UnhealthyThreshold: "5"
option_settings:
  aws:elb:healthcheck:
    HealthyThreshold: "3"
    Interval: "30"
    Timeout: "5"
    UnhealthyThreshold: "5"
tkm
  • 91
  • 7