def create_node_from_server(server):
    """ Translate AWS EC2 Instance representation into a Node object.
    """
    return Node(
        id=server.id,
        ip=server.private_ip_address,
        extIp=server.public_ip_address,
        az=server.placement['AvailabilityZone'],
        name="",
        state=server_status_to_state(server.state),
)
 Translate AWS EC2 Instance representation into a Node object.
    
powerfulseal/clouddrivers/aws_driver.py