Hi Fred, we have
an infrastructure block that lets you use ECS, which is (more or less) the AWS equivalent.
The example code at that link shows how you can specify either a Fargate or EC2 launch type, so that might be a good way to get around the Fargate limitations you mentioned.
My colleague wrote
an excellent post about using ECS for running Prefect flows. It uses ECS + Fargate, but I believe you could adapt it to use ECS + EC2 fairly easily. She also created
a GitHub repository that demonstrates how to set this all up as part of a CI/CD pipeline.