def get_ec2_creds(module):
 (region, ec2_url, boto_params) = get_aws_connection_info(module)
 return (ec2_url, boto_params['aws_access_key_id'], boto_params['aws_secret_access_key'], region)

def get_ec2_creds ( module ) : ( region , ec2_url , boto_params ) = get_aws_connection_info ( module ) return ( ec2_url , boto_params [ 'aws_access_key_id' ] , boto_params [ 'aws_secret_access_key' ] , region )
for compatibility mode with old modules that dont/cant yet use ec2_connect method .