sdg*_*sdh 6 amazon-web-services aws-cloudformation
我有一个启动 Elastic Beanstalk 服务的 CloudFormation 模板。我想/health在模板中设置健康检查 URL 。
JSON 中的约定是什么?
我在 .ebextension 目录下添加了以下配置
例子:
option_settings:
AWSEBV2LoadBalancerTargetGroup.aws:elasticbeanstalk:environment:process:default:
HealthCheckPath: /health
Run Code Online (Sandbox Code Playgroud)
您需要设置的OptionSettings属性AWS::ElasticBeanstalk::Environment:
例如:
{
"Type" : "AWS::ElasticBeanstalk::Environment",
"Properties" : {
"ApplicationName" : { "Ref" : "sampleApplication" },
"Description" : "AWS Elastic Beanstalk Environment running PHP Sample Application",
"VersionLabel" : "Initial Version",
"OptionSettings" : [
{
"Namespace" : "elasticbeanstalk:application",
"OptionName" : "Application Healthcheck URL",
"Value" : "/health"
}
],
"TemplateName" : "DefaultConfiguration",
}
}
Run Code Online (Sandbox Code Playgroud)
在本例中,该选项Application Healthcheck URL设置为/health
有关更多信息,请参阅:
| 归档时间: |
|
| 查看次数: |
6613 次 |
| 最近记录: |