For this type of use case AWS has managed services like Batch, ECS, or even auto scaling groups that can make this easier depending on what you're trying to achieve.
ECS with Fargate executors is fairly easy to run arbitrary things inside a VPC