Automate run jobs into an AWS EC2 Instance

Is there any “remaining runner quota minutes” variable?

I’ve created a job runner on an AWS Spot Instance following that great tutorial:

It is working properly but I would like to automate it.

I would like to have the possibility to check the gitlab-runner quota remaining minutes in my Gitlab Group, and in case it is less than 5%, run the pipelines in the AWS Spot Instance.

Is there a way to automate that?
I looked for it for an hour in Gitlab documentation but I can’t see anything about that.

Is it any workaround or I just do it manually?

Thanks in advance!