Skip to content

HealthCheckPath name is not found in aws:elasticbeanstalk:environment:process:default

0

I have this terraform config:

resource "aws_elastic_beanstalk_environment" "ebs_env" {
  ..
  setting {
    namespace = "aws:elasticbeanstalk:environment:process:default"
    name      = "HealthCheckPath"
    value     = "/actuator/health"  # Path to check on your application
  }

When i ran 'terraform apply': i got the error:

Invalid option specification (Namespace: 'aws:elasticbeanstalk:environment:process', OptionName: 'HealthCheckPath'): Unknown configuration setting 

When I check https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html, it is clear that there is the setting: aws:elasticbeanstalk:environment:process:default My environment flatform is: Corretto 17 running on 64bit Amazon Linux 2/3.9.7 please help

asked a year ago205 views

1 Answer
0

The issue you're encountering is related to how you're specifying the health check path in your Elastic Beanstalk environment configuration.

Looking at your error message, it appears that the namespace "aws:elasticbeanstalk:environment:process:default" with the option "HealthCheckPath" is not being recognized correctly.

There are a few approaches you can try instead:

  1. Use the "Application Healthcheck URL" option in the "aws:elasticbeanstalk:application" namespace:
setting {
namespace = "aws:elasticbeanstalk:application"
name      = "Application Healthcheck URL"
value     = "/actuator/health"
}
  1. If you're specifically trying to configure a health check for an environment process, make sure you're using the correct namespace format. The namespace should include the process name after "process:". For example:
setting {
namespace = "aws:elasticbeanstalk:environment:process:default"
name      = "HealthCheckPath"
value     = "/actuator/health"
}

If you're still encountering issues, it might be related to the platform version you're using, as some configuration options are platform-specific. You may need to check if your specific Elastic Beanstalk platform supports this configuration option.

Also, ensure that your environment is configured as a load-balanced environment, as some health check settings are only applicable to load-balanced environments.
Sources
Setting configuration options during environment creation - AWS Elastic Beanstalk
Setting configuration options before environment creation - AWS Elastic Beanstalk
Enabling Elastic Beanstalk enhanced health reporting - AWS Elastic Beanstalk

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.