I am trying to create a Fargate service, without e...
# dotnet
I am trying to create a Fargate service, without elastic load balancing. The aws-cs-fargate example had a load balancer and exposes the public ip of the service using the DnsName property of the load balancer. However, if you do not create a load balancer, how do you get the public ip for the service? The service is being created with NetworkConfiguration = new Ecs.Inputs.ServiceNetworkConfigurationArgs { AssignPublicIp = true, }
The information is available on the AWS Console when looking up the Task, then the ENI (Elastic Network Interface) and then the IPV4 Public IP is exposed. However, I can't work out how to expose this in an Output via Pulumi. Is this information available?
According to https://stackoverflow.com/questions/60332907/can-aws-fargate-be-used-without-a-load-balancer and https://forums.aws.amazon.com/thread.jspa?messageID=931880 using without an elastic load balancer is not really well supported. I observed it is possible, but you can't seem to expose the Public IP (apart from going on the AWS console) and also can't use Elastic IP's so this causes further problems. Ended up creating the load balancer!