cloud module

class cloud.AWSConnection(cloud_region)

Bases: object

An Amazon Web Services connection. Use getAWSConnection to get an instance of this class.

classmethod getErrorType(response)
getSSHKeyName()
getSSHKeyPath()
exception cloud.CloudOperationFailed

Bases: exceptions.Exception

class cloud.EC2InstanceType(model, ec2_units, num_cpus, memory)
description()
class cloud.EC2Region(code, name, location)
cloud.forceEC2RegionDetection()

Force detection of the region, bypassing the cache. Returns None if the region could not be detected.

cloud.getAWSConnection(cloud_region)

Return an AWSConnection that has been tested to be valid, or None if the Amazon Web Services key could not be read or the key is not valid.

cloud.getAWSKey(cloud_region)

Return the access key id and secret access key if possible.

cloud.getCachedDetectedEC2Region()

Return the cached region that was detected, or None if nothing was cached.

This function is also called from the rop.

cloud.getCachedProjectParmsFromRop(rop_node)
cloud.getDetectedEC2Region()

Return the detected region, using the cached version if it exists. Returns None if nothing could be detected.

cloud.instanceIsRunningSESIImage()
cloud.instanceLicenseCategory()
cloud.loadAWSFile(file_name, default_value=None)
cloud.loadReceiveEmailAndAddress()

Load the setting that says what email address to send notifications to.

Return a tuple of two values: the first indicates if receiving emails is enabled, and the second indicates which email address to send to.

cloud.preFlightScene()
cloud.saveProjectParmsToRop(rop_node, project_parms)
cloud.selectProjectParmsForCloudRender(rop_node, num_cloud_machines, machine_type)
cloud.setAccessKeyAndGetError(access_key_id, secret_access_key, cloud_region)

Set the access key and return an error message if it’s not valid, or None if it is.

This function sets the global variables _access_key_id and _secret_access_key. It is called from cloudsubmit when it reads the (decrypted) secret access key from a temporary file.

cloud.showFileReferenceDialog(rop_node, project_name, project_dir_variable, num_cloud_machines, machine_type)
cloud.showSetUpCloudDialog()
cloud.showSetUpCloudDialogWithPassphrasePrompt()