I am trying a new, simple deploy setup based on ECS and Fargate. I created a Cluster and a Task Definition. No ELB, no service.
On each deploy, I just create a new Task (Task Definition instance).
My problem is that this running Task has assigned a public IP, which is different every time the Task restarts:
If I add an ELB on the top of this, an external DNS name is assigned instead of the public IP.
Is there a way to ensure a long-tern external DNS name in my simple setup (no ELBs), so I can rely on it?