This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import datetime | |
import json | |
from collections import namedtuple | |
import tempfile | |
import time | |
import statistics | |
import argparse | |
import os | |
import pickle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Generate a list of EC2 instances with the information that I most need to see, including estimated monthly prices. | |
Add a line to your .bash_profile like this: | |
alias list='/usr/local/bin/python3 /path/to/ec2_instances.py' | |
This assumes that you have aws cli installed... | |
""" |