I wonder if it's possible to find the IP address o...
# yaml
r
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
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
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