Question: Develop a Python program using boto 3 ( AWS SDK ) implementing the following functionality: Creates a new VM in Amazon EC 2 ( micro

Develop a Python program using boto3(AWS SDK) implementing the
following functionality:
Creates a new VM in Amazon EC2(micro type)baseline VM
Monitors the CPUUtilization of the baseline VM regularly (in an endless loop)
E.g., every minute
Prints a message indicating latest CPUUtiilization metric
When the CPUUtilization is higher than a given threshold (e.g.,50%) for 5
consecutive times (for the baseline VM)
Prints a message indicating that the CPU utilization is high, and
Creates a secondary VM (micro type)
When the CPUUtilization is lower than a given threshold (e.g.,50%) for 5
consecutive times (for the baseline VM)
Prints a message indicating the CPU utilization is low, and
Terminates the secondary VM if it is running
Note: You can use the benchmarks used in the assignment to generate load in the
virtual machine. More details and examples will be provided in class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!