I stumbled this question today, Sharing my answer to help anyone else who comes across same issue.
networkMode should be changed from awsvpc to bridge in task-defintion. This would allow ports to get mapped from host to container. You can verify by issuing command docker ps - it should show ports column mapped. If you are still not able to access the application check your security group settings.