Terraform ElasticBeanstalkのアプリケーション HTTP 4xx ステータスコードを無視する設定
ConfigDocumentにルールを記載したJSONドキュメントを設定する必要がある。
setting { namespace = "aws:elasticbeanstalk:healthreporting:system" name = "SystemType" value = "enhanced" } setting { namespace = "aws:elasticbeanstalk:healthreporting:system" name = "ConfigDocument" value = <<EOF { "Rules": { "Environment": { "Application": { "ApplicationRequests4xx": { "Enabled": false } } } }, "Version": 1 } EOF }