

def open_connection(self, parameters):
    "\n    Initialize a connection to the back-end EC2 APIs.\n\n    Args:\n      parameters: A dictionary containing the 'credentials' parameter.\n    Returns:\n      An instance of Boto EC2Connection\n    "
    credentials = parameters[self.PARAM_CREDENTIALS]
    return boto.ec2.connect_to_region(parameters[self.PARAM_REGION], aws_access_key_id=credentials['EC2_ACCESS_KEY'], aws_secret_access_key=credentials['EC2_SECRET_KEY'])

dataset/ETHPy150Open AppScale/appscale-tools/lib/agents/ec2_agent.py EC2Agent.open_connection/original