Skip to content

This python script describes all EC2 instances from Amazon AWS and check CPU utilization. Print the CPU load if the CPU utilization is above then 60%.

Notifications You must be signed in to change notification settings

RonnieManral/AWS-EC2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

AWS-EC2

Python Script for calculating the CPU utilization of EC2 instance if the load is above 60% print that the CPU utlization of EC2 instance is above 60%.

First You need to make an instance from AWS Console and create the User on clicking IAM. In python script we can create virtual environment, need to install boto3 and install awscli. From terminal run the command "aws configure" and provide the access key,secret key,region and o/p format.(Access key and Secret key will be provided in csv file when we create the user). Now after providing access key and secret key in python script, run the script and change the load percentage according to you I have given the load percentage 0% in if statement.

About

This python script describes all EC2 instances from Amazon AWS and check CPU utilization. Print the CPU load if the CPU utilization is above then 60%.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published