Hi guys,
I would like to make a coding challenges website, similar to hackerrank or codewars.
I created the docker files with the needed dependencies and the test frameworks for the programming languages. So far its working locally. But now I would like to deploy it to aws.
I have over 20 supported programming languages and therefore over 20 different docker containers when a container is ran, only the test code is executed and the test result are returned as string.
A container only exists several seconds and is destroyed after the test code execution. The container does not need much performance: 256mb, maybe 2ghz cpu.
What AWS service would you recommend? I was thinking about ECS or Lambda.
Scaling, low costs are the main focus points.
If you are running user-supplied third-party code, think hard about any privileges granted to the container, where it sits in the network, and what someone nefarious could do. You may want to lock down its outbound network access as well.
If running in a container, consider if the container has any privileges, access to the docker unix socket or tcpo port, and any ‘capabilities’ it has.
Assume the first thing someone will do is try to exfiltrate the instance / container credentials.