So, I restarted the EC2 as well as removed the custom TCP ports (Since they are being served by nginx now). This worked for me.