This file contains hidden or 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
from boto.ec2 import * | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("access_key", help = "AWS Access Key") | |
parser.add_argument("secret_key", help = "AWS Secret Key") | |
parser.add_argument("--region", help = "AWS Region", default = "us-east-1") | |
parser.add_argument("--all", help = "show not just running instances", action = "store_true") | |
args = parser.parse_args() |
This file contains hidden or 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
# from fabric.api import * | |
# from fabric.colors import green as _green, yellow as _yellow | |
from boto.ec2.connection import EC2Connection | |
import time | |
# def start_machine(ami='ami-d7a18dbe'): | |
'''Launch a single instance of the provided ami''' | |
aws_access_key_id = 'Cf7...' |
NewerOlder