manage

boto.manage

boto.manage.cmdshell

boto.manage.propget

boto.manage.propget.get(prop, choices=None)

boto.manage.server

High-level abstraction of an EC2 server

class boto.manage.server.Bundler(server, uname='root')
bundle(bucket=None, prefix=None, key_file=None, cert_file=None, size=None, ssh_key=None, fp=None, clear_history=True)
bundle_image(prefix, size, ssh_key)
copy_x509(key_file, cert_file)
upload_bundle(bucket, prefix, ssh_key)
class boto.manage.server.CommandLineGetter
get(cls, params)
get_ami_id(params)
get_ami_list()
get_description(params)
get_group(params)
get_instance_type(params)
get_key(params)
get_name(params)
get_quantity(params)
get_region(params)
get_zone(params)
class boto.manage.server.Server(id=None, **kw)
classmethod add_credentials(cfg, aws_access_key_id, aws_secret_access_key)
ami_id = None
console_output = None
classmethod create(config_file=None, logical_volume=None, cfg=None, **params)

Create a new instance based on the specified configuration file or the specified configuration and the passed in parameters.

If the config_file argument is not None, the configuration is read from there. Otherwise, the cfg argument is used.

The config file may include other config files with a #import reference. The included config files must reside in the same directory as the specified file.

The logical_volume argument, if supplied, will be used to get the current physical volume ID and use that as an override of the value specified in the config file. This may be useful for debugging purposes when you want to debug with a production config file but a test Volume.

The dictionary argument may be used to override any EC2 configuration values in the config file.

classmethod create_from_current_instances()
classmethod create_from_instance_id(instance_id, name, description='')
delete()
description = None
elastic_ip = None
get_bundler(uname='root')
get_cmdshell()
get_ssh_client(uname='root', ssh_pwd=None)
get_ssh_key_file()
groups = None
hostname = None
install(pkg)
instance_id = None
instance_type = None
key_name = None
launch_time = None
name = None
packages = []
plugins = []
private_hostname = None
production = None
put()
reboot()
region_name = None
reset_cmdshell()
run(command)
security_group = None
status = None
stop()
terminate()
wait()
zone = None

boto.manage.task

class boto.manage.task.Task(id=None, **kw)

A scheduled, repeating task that can be executed by any participating servers. The scheduling is similar to cron jobs. Each task has an hour attribute. The allowable values for hour are [0-23|*].

To keep the operation reasonably efficient and not cause excessive polling, the minimum granularity of a Task is hourly. Some examples:

hour=’*’ - the task would be executed each hour hour=‘3’ - the task would be executed at 3AM GMT each day.
check()

Determine how long until the next scheduled time for a Task. Returns the number of seconds until the next scheduled time or zero if the task needs to be run immediately. If it’s an hourly task and it’s never been run, run it now. If it’s a daily task and it’s never been run and the hour is right, run it now.

command = None
hour = None
last_executed = None
last_output = None
last_status = None
message_id = None
name = None
run(msg, vtimeout=60)
start(queue_name)
classmethod start_all(queue_name)
class boto.manage.task.TaskPoller(queue_name)
poll(wait=60, vtimeout=60)
boto.manage.task.check_hour(val)

boto.manage.volume