cbtshare has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, I have a new project to take on, the aim of this project is to save money by using spot instances and reserved instances.Basically I need to we have 3 reserved instances and a pool of spot instances (which may or may not have instances in them).Once there are spot instances in the pool, Ii will take away a reserved instance leaving atleast ONE reserved instance, and as the spot instances go away, the script brings up a reserved instance. Is there a aws perl module to do this? Thank you

Replies are listed 'Best First'.
Re: Perl and AWS module
by Corion (Patriarch) on Jan 09, 2016 at 21:44 UTC

    Have you looked at Paws? There are also other modules in the AWS namespace, but the PAWS collection seems to be quite comprehensive, at least if you know the AWS APIs.

      For PAWS, I dont see anything about spot instances , I was looking at https://metacpan.org/pod/VM::EC2

        I'm not sure how you looked, but if I go to Paws, and search for "spot", I see at least Paws::EC2::RequestSpotInstances, which seems to be about buying spot instances and Paws::EC2::SpotFleetMonitoring, which sounds as if you could use that to find out how many spot instances are currently running.

        Of course, all of these require knowledge of the AWS API, which I don't have, so I don't know whether these are appropriate. But I'm certain that a bit of reading in the documentation will point out the requests you need to make.