Home > Software engineering >  Retrieve Amazon ECS Fargate Public IP
Retrieve Amazon ECS Fargate Public IP

Time:03-09

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?

CodePudding user response:

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