Ec2 spot instance module

I’m looking for feedback for writing a module for ec2 spot instances. The main responsibility the process of creating a spot instance request and waiting for approval. It could also potentially cancel requests etc. These actions seem specific enough to put in a separate module.

Any thoughts?

Thanks