Retrieve Amazon ECS Fargate Public IP

Viewed 185

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?

1 Answers

You would have to develop a custom resource for that. The resource would be a lambda function that would use AWS SDK to query your Fargate cluster/service/task and return its IP address back to the CloudFormation stack for further use.

Related