I am deploying a Django
app with python 3.6
to AWS Elastic Beanstalk
. Does anyone know how to set the Healthcheck URL when creating or restoring an elastic beanstalk
environment? I have tried saving a configuration but that didn't store my custom URL so I downloaded it with eb config get, added it to the configuration manually (which I came across on an aws
page)
aws:elasticbeanstalk:application:
Application Healthcheck URL: /accounts/login/
and did an eb config put. Then I created an environment using the eb create --cfg good_cfg
but that didn't restore the URL. I have also set it via the web interface, terminated the environment and then restored the environment via eb restore env_id but the Healthcheck URL is set back to the default of /.
Here is my full 2020-01-12-test.cfg.yml file.
EnvironmentConfigurationMetadata:
DateCreated: '1578859126000'
DateModified: '1578859126000'
Platform:
PlatformArn: arn:aws:elasticbeanstalk:us-east-2::platform/Python 3.6 running on 64bit Amazon Linux/2.9.4
OptionSettings:
aws:elasticbeanstalk:command:
BatchSize: '30'
BatchSizeType: Percentage
aws:elb:policies:
ConnectionDrainingEnabled: true
aws:elb:loadbalancer:
CrossZone: true
aws:elasticbeanstalk:environment:
ServiceRole: arn:aws:iam::598520317272:role/aws-elasticbeanstalk-service-role
LoadBalancerType: application
aws:elasticbeanstalk:application:
Application Healthcheck URL: /accounts/login/
aws:elasticbeanstalk:healthreporting:system:
SystemType: enhanced
aws:elbv2:listener:443:
ListenerEnabled: true
SSLPolicy: ELBSecurityPolicy-2016-08
SSLCertificateArns: arn:aws:acm:us-east-2:598520317272:certificate/4f82f8a4-cc06-48de-a96a-31bb6767f847
DefaultProcess: default
Protocol: HTTPS
Rules: ''
aws:autoscaling:launchconfiguration:
IamInstanceProfile: aws-elasticbeanstalk-ec2-role
EC2KeyName: aws-eb-coincounter
aws:autoscaling:updatepolicy:rollingupdate:
RollingUpdateType: Health
RollingUpdateEnabled: true
EnvironmentTier:
Type: Standard
Name: WebServer
AWSConfigurationTemplateVersion: 1.1.0.0