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
"""This scheduler starts/stops EC2 instances using a JSON based schedule. | |
Usage: | |
aws-scheduler check [<instance_id> ...] [options] | |
aws-scheduler (-h | --help) | |
aws-scheduler --version | |
Options: | |
-c --config CONFIG Use alternate configuration file [default: ./aws.cnf]. |
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
''' | |
Get the list of active VMs based on the creator ID and generate /etc/hosts file | |
''' | |
from __future__ import print_function | |
import sys | |
import os | |
import SoftLayer | |
def generate_hosts_file(username, api_key, creator_id=None): | |
""" |