I am looking for a service that is similar to AWS's Lambda or GCP's Cloud Functions but allows for the running of arbitrary containers.
The use case is that at random times I need to run a Docker container. It might be that the container does not need to run for several days or weeks. The application is cost-sensitive so something like GCP's App Engine (flexible) which runs the containers all the time is not appropriate.
Is there something in Amazon Web Services or Google Cloud Platform that can do this?