There is a similar discussion about this but i have got a different scenario.
Amazon AWS Fargate Task static IP adress
In my case, i need a static IP so i can whitelist it at my database server firewall which is NOT hosted in AWS.
Any solution for this?