简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM