I have a small problem. I am starting a Task (docker container) via the JAVA SDK. This is working great.
But now I want to grab the public IP via the SDK and don't know how.
here is my existing code so far.
RunTaskRequest request = new RunTaskRequest()
.withCluster("JuiceShop")
.withTaskDefinition("startJuiceShop:1")
.withNetworkConfiguration(networkConfiguration)
.withLaunchType("FARGATE");
RunTaskResult response = client.runTask(request);
The response contains the Container but the network devices aren't attached yet. Is there a simple way to get the public IPV4?