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 botoAWS SDK implementing the
following functionality:
Creates a new VM in Amazon ECmicro typebaseline VM
Monitors the CPUUtilization of the baseline VM regularly in an endless loop
Eg every minute
Prints a message indicating latest CPUUtiilization metric
When the CPUUtilization is higher than a given threshold eg for
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 eg for
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
