Is it possible to use AWS/EC2 as a backend for hf spaces?

I have some AWS credits so I want to use the GPU that I have on EC2 to run my HF space. Is that possible?