https://pulumi.com logo
#yaml
Title
# yaml
r

rich-motorcycle-71684

05/29/2023, 9:36 AM
I wonder if it's possible to find the IP address of an ECS container? I'm using Crosswalk awsx to create the ECS, ECR, LB, etc. But my app in the container is complaining about the LB healthchecks because the LB is contacting the container on its local IP, which is not in the
ALLOWED_HOSTS
of my app. Therefore the LB thinks the target is unhealthy and pulumi times out
q

quaint-hydrogen-7228

05/29/2023, 9:45 AM
This is more of an ECS issue, not specific to Pulumi. You can obtain metadata for the ECS container and get the IP from there: https://docs.aws.amazon.com/AmazonECS/latest/userguide/task-metadata-endpoint-v4-fargate.html
r

rich-motorcycle-71684

05/29/2023, 10:19 AM
Thanks you're right. I thought Pulumi was adding in the container IP as registered targets in the loadbalancer target group, but it seems like ECS handles it somehow