You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Updating the infrastructure for ... [update rollback complete] [10.5s]
The following resource(s) failed to update: [TargetGroup].
- A target group to connect the load balancer to your service on port 8080 [update complete] [0.0s]
Resource handler returned message: "Health check matcher GRPC code can
not be empty (Service: ElasticLoadBalancingV2, Status Code: 400, Reque
st ID: 2f882cda-c03f-4a13-90fd-de57293579b7)" (RequestToken: 6e68ba66-
1ac0-9126-8914-6128326c07f0, HandlerErrorCode: GeneralServiceException
)
If I don't set the success_codes, AWS uses its default value of 12 which causes my health checks to fail.
Details:
AWS Region: us-east-2
type: Backend Service
version: version: v1.34.0, built for darwin
Observed result:
Error when attempting to set the success code.
Expected result:
Target group health check is configured with the success code set to zero rather than 12.
Debugging:
I checked the source code and this file https://github.com/aws/copilot-cli/blob/b1c4c42cf1c47793a8181314a732312f3e3df1a7/internal/pkg/template/templates/workloads/partials/cf/alb.yml#L43 seems to imply that it should be set using the http.additional_rules but when I tried that as in the following:
Description:
I have a backend gRPC service that I'm attempting to set the health check success code with an http configuration as follows:
I get the following error:
If I don't set the
success_codes
, AWS uses its default value of 12 which causes my health checks to fail.Details:
AWS Region: us-east-2
type: Backend Service
version: version: v1.34.0, built for darwin
Observed result:
Error when attempting to set the success code.
Expected result:
Target group health check is configured with the success code set to zero rather than 12.
Debugging:
I checked the source code and this file
https://github.com/aws/copilot-cli/blob/b1c4c42cf1c47793a8181314a732312f3e3df1a7/internal/pkg/template/templates/workloads/partials/cf/alb.yml#L43
seems to imply that it should be set using thehttp.additional_rules
but when I tried that as in the following:I get the following error:
The text was updated successfully, but these errors were encountered: