ec2-shutdown-python-script Just run 'python3 stop_all_instances.py' from cloud9 IDE to run the script. To Do Add credentials to run it from your terminal or elsewhere Source https://awstip.com/python-and-boto3-automating-aws-services-3c8afcfefb8a