https://pulumi.com logo
#general
Title
# general
f

full-dress-10026

03/25/2019, 4:31 PM
How do you guys configure healthchecks for a backend service that is not a HTTP service? (i.e. a SQS worker) Do you add a lightweight HTTP server to your worker service? If so, does that require deploying a load balancer that is essentially a NOP? Or is there some other AWS mechanism for liveliness of a backend service?
It looks like I can specify a
healthCheck
parameter for ECS: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_healthcheck. @lemon-spoon-91807 is there a way to specify this for an
awsx.ecs.FargateService
? I don't see it in the
awsx.ecs.Container
interface.
l

lemon-spoon-91807

03/25/2019, 5:17 PM
Checking!
Yup. Definitely missing
This may be due to it not existing whne we originally defined these interfaces
f

full-dress-10026

03/25/2019, 5:27 PM
Is the fix to add to the original interface then?
l

lemon-spoon-91807

03/25/2019, 5:27 PM
yes, most likely
note:
we copy all the values you provie over
so you should be able to still add these members (and just override TypeScript)
if you wanted to try that to see if it worked, that would be great
and i can then go about updating hte TypeSignatures here.
but it would help to get confirmation on your part that passing along this data works
f

full-dress-10026

03/25/2019, 6:27 PM
I actually don't have that healthcheck set up yet so I can't test it. Was just investigating how these sort of healthchecks should be done.
l

lemon-spoon-91807

03/25/2019, 9:20 PM
Ok. if you can test in the future, that would be great. Thanks!
👍 1
f

full-dress-10026

03/26/2019, 4:43 PM
Added the healthcheck to my app and passed these params to Container. Works as expected.