An example of execution a function in the background. The main execution will continue in the same flow without waiting for the background function to complete and the function set for background will continue its execution in the background
Simple python code snippet to get the list of all the running ec2 instances across regions. The code will dynamically pick the list of available regions. So this will work perfectly without a code change even if a new region gets added.
Python program to reboot multiple ec2 instances together. This can be used for performing some scheduled restart of EC2 machines in an Amazon account. I used python boto library for performing this operation.
Program to find get the summary of EMR clusters and EC2 instances running across all regions in an AWS account. This program can be executed via cron to get summary alerts in periodic intervals. An HTML email will be generated and send to the list of recipients mentioned in program. In this program, EMR and EC2 service summary are only considere…