- 最新
- 最多得票
- 最多評論
Hello, I don't configure these things as part of the UI, I use the ECS Compose-X which deals with setting the ALB & Target group settings for me using the x-elbv2 settings. In there you can configure the expected answer codes to report the application as healthy. Some of the things that Compose-X does for you though is do a lot of validation, i.e. check the ports on your service is open when declaring it on your Target Group, automatically adjust settings if two options are not compatible. Or at least, fail early to report that 2 options can't work together.
You can configure all this with CloudFormation anyways, which is what Compose-X does anyways (generate the CFN templates for you). As it seems you already are using CloudFormation, hopefully that's an easy retro-fit or swap to your existing stack.
The property you are looking for in your Target Group is otherwise this: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-targetgroup-matcher.html
Hope this helps,
相關內容
- AWS 官方已更新 2 年前
This will take a little while to try. After three weeks of frustration with the ECS UI shortcomings and documentation (far beyond just this item) I am willing to try almost anything. Our need is really very basic - we have a single task consisting of a container containing our web service and a container containing a mongo db. Our container service is accessed on port 8080 but we want the remote client to access it using https:443. We don't want to use Fargate since it is a long running application and Fargate is very expensive for that.