'Retrieve Amazon ECS Fargate Public IP

I created a cloudformation template that will start ECS with fargate but i would like to know is there anyway to catch Fargate's public ip as output in cloudformation or maybe even do it via aws cli?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source